Revision: 1135
Author: [email protected]
Date: Mon Mar  8 01:49:19 2010
Log: Move pid end processing into load_perl_callback().
http://code.google.com/p/perl-devel-nytprof/source/detail?r=1135

Modified:
 /trunk/NYTProf.xs

=======================================
--- /trunk/NYTProf.xs   Mon Mar  8 01:49:15 2010
+++ /trunk/NYTProf.xs   Mon Mar  8 01:49:19 2010
@@ -4056,7 +4056,7 @@
     {STR_WITH_LEN("SUB_INFO"), "uuus"},
     {STR_WITH_LEN("SUB_CALLERS"), "uuunn..nuss"},
     {STR_WITH_LEN("PID_START"), "uun"},
-    {STR_WITH_LEN("PID_END"), NULL},
+    {STR_WITH_LEN("PID_END"), "un"},
     {STR_WITH_LEN("[string]"), NULL},
     {STR_WITH_LEN("[string utf8]"), NULL},
     {STR_WITH_LEN("START_DEFLATE"), NULL}
@@ -4441,16 +4441,7 @@
                 NV end_time = read_nv(in);

                 if (cb) {
-                    PUSHMARK(SP);
-
-                    i = 0;
- sv_setpvs(cb_args[i], "PID_END"); XPUSHs(cb_args[i++]); - sv_setuv(cb_args[i], pid); XPUSHs(cb_args[i++]); - sv_setnv(cb_args[i], end_time); XPUSHs(cb_args[i++]);
-
-                    PUTBACK;
-                    call_sv(cb, G_DISCARD);
-                    SPAGAIN;
+ load_perl_callback(&state, nytp_pid_end, pid, end_time);
                     break;
                 }

--
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