Revision: 1271
Author: [email protected]
Date: Sun Jun  6 03:36:03 2010
Log: Change some counters from int to UV.

http://code.google.com/p/perl-devel-nytprof/source/detail?r=1271

Modified:
 /trunk/NYTProf.xs

=======================================
--- /trunk/NYTProf.xs   Tue Jun  1 15:43:00 2010
+++ /trunk/NYTProf.xs   Sun Jun  6 03:36:03 2010
@@ -3644,10 +3644,10 @@
     unsigned int last_file_num;
     unsigned int last_line_num;
     int statement_discount;
-    int total_stmts_discounted;
-    int total_sub_calls;
-    int total_stmts_measured;
+    UV total_stmts_discounted;
+    UV total_stmts_measured;
     NV total_stmts_duration;
+    UV total_sub_calls;
     AV *fid_line_time_av;
     AV *fid_block_time_av;
     AV *fid_sub_time_av;
@@ -4650,9 +4650,9 @@
         }

         if (show_summary_stats)
- logwarn("Summary: statements profiled %d (%d-%d), sum of time %"NVff"s, profile spanned %"NVff"s\n",
-                state.total_stmts_measured - state.total_stmts_discounted,
-                state.total_stmts_measured, state.total_stmts_discounted,
+ logwarn("Summary: statements profiled %lu (=%lu-%lu), sum of time %"NVff"s, profile spanned %"NVff"s\n", + (unsigned long)(state.total_stmts_measured - state.total_stmts_discounted), + (unsigned long)state.total_stmts_measured, (unsigned long)state.total_stmts_discounted,
                 state.total_stmts_duration,
                 state.profiler_end_time - state.profiler_start_time);
     }

--
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.

Group hosted at:  http://groups.google.com/group/develnytprof-dev
Project hosted at:  http://perl-devel-nytprof.googlecode.com
CPAN distribution:  http://search.cpan.org/dist/Devel-NYTProf

To post, email:  [email protected]
To unsubscribe, email:  [email protected]

Reply via email to