Below is the list of changes that have just been committed into a local
5.0 repository of msvensson. When msvensson does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.2139 06/04/05 11:47:12 msvensson@neptunus.(none) +1 -0
Incorporate a patch to write a timestamp for every new line of the test that is executed.
This makes it possible make a graph (with for example gnuplot) of a test run and spot where most time is consumed.
Add the new code inside an "#if 0" until it's portable.
client/mysqltest.c
1.231 06/04/05 11:47:08 msvensson@neptunus.(none) +30 -0
Incorporate a patch to write a timestamp for every new line of the test that is executed.
This makes it possible make a graph (with for example gnuplot) of a test run and spot where most time is consumed.
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: msvensson
# Host: neptunus.(none)
# Root: /home/msvensson/mysql/mysql-5.0
--- 1.230/client/mysqltest.c 2006-03-23 21:48:26 +01:00
+++ 1.231/client/mysqltest.c 2006-04-05 11:47:08 +02:00
@@ -4501,6 +4501,35 @@
DBUG_VOID_RETURN;
}
+static void mark_progress(int line)
+{
+#if 0
+ static FILE* fp = NULL;
+ static double first;
+
+ struct timeval tv;
+ double now;
+
+ if (!fp)
+ {
+
+ fp = fopen("/tmp/mysqltest_progress.log", "wt");
+
+ if (!fp)
+ {
+ abort();
+ }
+
+ gettimeofday(&tv, NULL);
+ first = tv.tv_sec * 1e6 + tv.tv_usec;
+ }
+
+ gettimeofday(&tv, NULL);
+ now = tv.tv_sec * 1e6 + tv.tv_usec;
+
+ fprintf(fp, "%d %f\n", parser.current_line, (now - first) / 1e6);
+#endif
+}
int main(int argc, char **argv)
{
@@ -4851,6 +4880,7 @@
}
parser.current_line += current_line_inc;
+ mark_progress(parser.current_line);
}
start_lineno= 0;
| Thread |
|---|
| • bk commit into 5.0 tree (msvensson:1.2139) | msvensson | 5 Apr |