We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2276582 commit e0e5213Copy full SHA for e0e5213
bin/profile
@@ -4,13 +4,14 @@
4
require "bundler/setup"
5
require "stackprof"
6
7
-filepath = File.expand_path("../lib/syntax_tree", __dir__)
8
-require_relative filepath
+$:.unshift(File.expand_path("../lib", __dir__))
+require "syntax_tree"
9
10
GC.disable
11
12
StackProf.run(mode: :cpu, out: "tmp/profile.dump", raw: true) do
13
- SyntaxTree.format(File.read("#{filepath}.rb"))
+ filepath = File.expand_path("../lib/syntax_tree/node.rb", __dir__)
14
+ SyntaxTree.format(File.read(filepath))
15
end
16
17
GC.enable
0 commit comments