summaryrefslogtreecommitdiff
path: root/ext/probeprofiler/lib/probeprofiler.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/probeprofiler/lib/probeprofiler.rb')
-rw-r--r--ext/probeprofiler/lib/probeprofiler.rb28
1 files changed, 14 insertions, 14 deletions
diff --git a/ext/probeprofiler/lib/probeprofiler.rb b/ext/probeprofiler/lib/probeprofiler.rb
index e014adda2f..a00b6df653 100644
--- a/ext/probeprofiler/lib/probeprofiler.rb
+++ b/ext/probeprofiler/lib/probeprofiler.rb
@@ -1,14 +1,14 @@
-
-require 'probeprofiler.so'
-
-def ProbeProfiler.print_profile
- data = ProbeProfiler.profile_data
- total = 0.0
- printf("%-60s %-8s %-7s\n", "ProbeProfile Result: Method signature", "count", "ratio")
- data.map{|k, n| total += n; [n, k]}.sort.reverse.each{|n, sig|
- #
- printf("%-60s %8d %7.2f%%\n", sig, n, 100 * n / total)
- }
- printf("%60s %8d\n", "total:", total)
-end
-
+
+require 'probeprofiler.so'
+
+def ProbeProfiler.print_profile
+ data = ProbeProfiler.profile_data
+ total = 0.0
+ printf("%-60s %-8s %-7s\n", "ProbeProfile Result: Method signature", "count", "ratio")
+ data.map{|k, n| total += n; [n, k]}.sort.reverse.each{|n, sig|
+ #
+ printf("%-60s %8d %7.2f%%\n", sig, n, 100 * n / total)
+ }
+ printf("%60s %8d\n", "total:", total)
+end
+