summaryrefslogtreecommitdiff
path: root/ext/probeprofiler/lib
diff options
context:
space:
mode:
Diffstat (limited to 'ext/probeprofiler/lib')
-rw-r--r--ext/probeprofiler/lib/probeprofile.rb14
-rw-r--r--ext/probeprofiler/lib/probeprofiler.rb28
2 files changed, 21 insertions, 21 deletions
diff --git a/ext/probeprofiler/lib/probeprofile.rb b/ext/probeprofiler/lib/probeprofile.rb
index f5ff40d2cc..ef722b59da 100644
--- a/ext/probeprofiler/lib/probeprofile.rb
+++ b/ext/probeprofiler/lib/probeprofile.rb
@@ -1,7 +1,7 @@
-require 'probeprofiler'
-END{
- ProbeProfiler.stop_profile
- ProbeProfiler.print_profile
-}
-
-ProbeProfiler.start_profile
+require 'probeprofiler'
+END{
+ ProbeProfiler.stop_profile
+ ProbeProfiler.print_profile
+}
+
+ProbeProfiler.start_profile
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
+