Date: Thu Jul 21 18:33:57 CEST 2005
User: Jani Taskinen
Directory: xdebug
Log Message:
[0.01]
- Added some fflush()'s to get the profile output file written
and to be able to display it during script run.
Modified files:
xdebug/xdebug_profiler.c (version: 1.29)
[FILE: /xdebug/xdebug_profiler.c]
===================================================================
RCS file: cvstemp,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- xdebug/xdebug_profiler.c:1.28 Thu Jul 21 13:33:17 2005 GMT
+++ xdebug/xdebug_profiler.c Thu Jul 21 14:33:57 2005 GMT
@@ -60,6 +60,7 @@
}
XG(profile_filename) = estrdup(filename);
fprintf(XG(profile_file), "version: 0.9.6\ncmd: %s\npart: 1\n\nevents: Time Memory\n\n", script_name);
+ fflush(XG(profile_file));
return SUCCESS;
}
@@ -108,7 +109,7 @@
void xdebug_profiler_function_user_end(function_stack_entry *fse, zend_op_array* op_array TSRMLS_DC)
{
xdebug_llist_element *le;
- char *tmp_fname, *tmp_name;
+ char *tmp_fname, *tmp_name;
int default_lineno = 0;
xdebug_profiler_function_push(fse);
@@ -157,6 +158,7 @@
fprintf(XG(profile_file), "\nsummary: %lu\n\n", (unsigned long) (fse->profile.time * 10000000));
#endif
}
+ fflush(XG(profile_file));
/* Subtract time in calledfunction from time here */
for (le = XDEBUG_LLIST_HEAD(fse->profile.call_list); le != NULL; le = XDEBUG_LLIST_NEXT(le))
@@ -192,7 +194,7 @@
#endif
}
fprintf(XG(profile_file), "\n");
-
+ fflush(XG(profile_file));
}
Received on Thu Jul 21 2005 - 18:34:12 BST
This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST