[xdebug-dev] xdebug xdebug/xdebug.c xdebug/xdebug_profiler.c - Implemented the "timestamp" option for the xdebug.trace_output_name and

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Sun, 2 Apr 2006 09:31:03 +0200

Date: Sun Apr 2 09:31:03 CEST 2006
User: Derick Rethans
Directory: xdebug

Log Message:
[0.25]
- Implemented the "timestamp" option for the xdebug.trace_output_name and
  xdebug.profiler_output_name settings.

Modified files:
           xdebug/xdebug.c (version: 1.308)
           xdebug/xdebug_profiler.c (version: 1.35)

[FILE: /xdebug/xdebug.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.307
retrieving revision 1.308
diff -u -r1.307 -r1.308
--- xdebug/xdebug.c:1.307 Wed Mar 15 08:22:20 2006 GMT
+++ xdebug/xdebug.c Sun Apr 02 05:31:03 2006 GMT
@@ -2315,6 +2315,9 @@
                 if (strcmp(XG(trace_output_name), "crc32") == 0) {
                         VCWD_GETCWD(cwd, 127);
                         filename = xdebug_sprintf("%s/trace.%lu.xt", XG(trace_output_dir), xdebug_crc32(cwd, strlen(cwd)));
+ } else if (strcmp(XG(trace_output_name), "timestamp") == 0) {
+ time_t the_time = time(NULL);
+ filename = xdebug_sprintf("%s/trace.%ld.xt", XG(trace_output_dir), the_time);
                 } else {
                         filename = xdebug_sprintf("%s/trace.%ld.xt", XG(trace_output_dir), getpid());
                 }

[FILE: /xdebug/xdebug_profiler.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- xdebug/xdebug_profiler.c:1.34 Tue Mar 07 20:30:13 2006 GMT
+++ xdebug/xdebug_profiler.c Sun Apr 02 05:31:03 2006 GMT
@@ -61,6 +61,9 @@
 
         if (strcmp(XG(profiler_output_name), "crc32") == 0) {
                 filename = xdebug_sprintf("%s/cachegrind.out.%lu", XG(profiler_output_dir), xdebug_crc32(script_name, strlen(script_name)));
+ } else if (strcmp(XG(profiler_output_name), "timestamp") == 0) {
+ time_t the_time = time(NULL);
+ filename = xdebug_sprintf("%s/cachegrind.out.%ld", XG(profiler_output_dir), the_time);
         } else {
                 filename = xdebug_sprintf("%s/cachegrind.out.%ld", XG(profiler_output_dir), getpid());
         }
Received on Sun Apr 02 2006 - 09:31:07 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST