Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Missed a trace of ExpressionFilter

  • Loading branch information...
commit 5030a70aae29f4edabd9194cdfd74aa83c21a7be 1 parent 552a352
Darrick Wiebe authored
Showing with 15 additions and 1 deletion.
  1. +0 −1  lib/pacer.rb
  2. +15 −0 samples/profile.rb
View
1  lib/pacer.rb
@@ -176,7 +176,6 @@ def clear_plugin_cache
Wrappers::VertexWrapper.clear_cache
Wrappers::EdgeWrapper.clear_cache
Route::Helpers.clear_cache
- Filter::ExpressionFilter::Parser.reset
end
# Is the object a vertex?
View
15 samples/profile.rb
@@ -0,0 +1,15 @@
+require 'lib/pacer'
+
+require 'jruby/profiler'
+
+g = Pacer.tg 'samples/grateful-dead.xml'
+g.v.out.in.count
+
+profile_data = JRuby::Profiler.profile do
+ 100.times do
+ g.v(type: 'song').out(type: 'artist', name: nil).out_e.in_v.count
+ end
+end
+
+profile_printer = JRuby::Profiler::GraphProfilePrinter.new(profile_data)
+profile_printer.printProfile(STDOUT)
Please sign in to comment.
Something went wrong with that request. Please try again.