Commit f53a81f9 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

add a second header which is parseable as a python dict with some extra information.

parent e8da91c6
......@@ -35,6 +35,7 @@
/* Local headers. */
#include "atomic.h"
#include "clocks.h"
#include "error.h"
#include "minmax.h"
......@@ -92,6 +93,8 @@ void threadpool_dump_log(struct threadpool *tp, const char *filename,
/* Write a header. */
fprintf(fd, "# map_function thread_id chunk_size tic toc\n");
fprintf(fd, "# {'num_threads': %i, 'cpufreq': %lli}\n", tp->num_threads,
/* Loop over the log entries and dump them. */
for (int i = 0; i < tp->log_count; i++) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment