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

Modified:
 /trunk/NYTProf.xs

=======================================
--- /trunk/NYTProf.xs   Mon Mar  8 01:49:10 2010
+++ /trunk/NYTProf.xs   Mon Mar  8 01:49:15 2010
@@ -4055,7 +4055,7 @@
     {STR_WITH_LEN("SRC_LINE"), "uuS"},
     {STR_WITH_LEN("SUB_INFO"), "uuus"},
     {STR_WITH_LEN("SUB_CALLERS"), "uuunn..nuss"},
-    {STR_WITH_LEN("PID_START"), NULL},
+    {STR_WITH_LEN("PID_START"), "uun"},
     {STR_WITH_LEN("PID_END"), NULL},
     {STR_WITH_LEN("[string]"), NULL},
     {STR_WITH_LEN("[string utf8]"), NULL},
@@ -4427,17 +4427,7 @@
                 NV start_time = read_nv(in);

                 if (cb) {
-                    PUSHMARK(SP);
-
-                    i = 0;
- sv_setpvs(cb_args[i], "PID_START"); XPUSHs(cb_args[i++]); - sv_setuv(cb_args[i], pid); XPUSHs(cb_args[i++]); - sv_setuv(cb_args[i], ppid); XPUSHs(cb_args[i++]); - sv_setnv(cb_args[i], start_time); XPUSHs(cb_args[i++]);
-
-                    PUTBACK;
-                    call_sv(cb, G_DISCARD);
-                    SPAGAIN;
+ load_perl_callback(&state, nytp_pid_start, pid, ppid, start_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