Date: Fri Jun 11 15:56:08 CEST 2004
User: Derick Rethans
Directory: xdebug
Log Message:
- Added a new field to the computerized trace output to show if a function
is used defined or not.
- Added the xdebug version number to the computerized trace output.
Modified files:
xdebug/xdebug.c (version: 1.220)
[FILE: /xdebug/xdebug.c]
===================================================================
RCS file: cvstemp,v
retrieving revision 1.219
retrieving revision 1.220
diff -u -r1.219 -r1.220
--- xdebug/xdebug.c:1.219 Fri Jun 11 10:42:12 2004 GMT
+++ xdebug/xdebug.c Fri Jun 11 11:56:08 2004 GMT
@@ -1348,10 +1348,11 @@
tmp_name = show_fname(i->function, 0, 0 TSRMLS_CC);
xdebug_str_add(&str, xdebug_sprintf("%d\t", i->level), 1);
- xdebug_str_add(&str, xdebug_sprintf("%.4f\t", i->time - XG(start_time)), 1);
+ xdebug_str_add(&str, xdebug_sprintf("%f\t", i->time - XG(start_time)), 1);
xdebug_str_add(&str, xdebug_sprintf("%lu\t", i->memory), 1);
xdebug_str_add(&str, xdebug_sprintf("%+ld\t", i->memory - i->prev_memory), 1);
xdebug_str_add(&str, xdebug_sprintf("%s\t", tmp_name), 1);
+ xdebug_str_add(&str, xdebug_sprintf("%d\t", i->user_defined == XDEBUG_EXTERNAL ? 1 : 0), 1);
xdfree(tmp_name);
if (i->include_filename) {
@@ -1741,8 +1742,11 @@
}
XG(tracefile_name) = estrdup(filename);
if (XG(trace_file)) {
+ if (XG(trace_format) == 1) {
+ fprintf(XG(trace_file), "Version: %s\n", XDEBUG_VERSION);
+ }
str_time = xdebug_get_time();
- fprintf(XG(trace_file), "\nTRACE START [%s]\n", str_time);
+ fprintf(XG(trace_file), "TRACE START [%s]\n", str_time);
XG(do_trace) = 1;
xdfree(str_time);
return filename;
@@ -1757,7 +1761,7 @@
XG(do_trace) = 0;
if (XG(trace_file)) {
str_time = xdebug_get_time();
- fprintf(XG(trace_file), "TRACE END [%s]\n", str_time);
+ fprintf(XG(trace_file), "TRACE END [%s]\n\n", str_time);
fclose(XG(trace_file));
XG(trace_file) = NULL;
xdfree(str_time);
Received on Fri Jun 11 2004 - 15:56:09 BST
This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:02 BST