We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d9c6d4 commit d23f585Copy full SHA for d23f585
lib/vernier/output/firefox.rb
@@ -397,7 +397,8 @@ def pretty_name(name)
397
return name unless name.start_with?("#<Thread")
398
pretty = []
399
obj_address = name[/Thread:(0x\w+)/,1]
400
- best_id = name[/\#<Thread:0x\w+@?\s?(.*)\s+\S+>/,1]
+ best_id = name[/\#<Thread:0x\w+@?\s?(.*)\s+\S+>/,1] || ""
401
+ Gem.path.each { |gem_dir| best_id = best_id.gsub(gem_dir, "...") }
402
pretty << best_id unless best_id.empty?
403
pretty << "(#{obj_address})"
404
pretty.join(' ')
0 commit comments