diff options
Diffstat (limited to 'source/blender/depsgraph/intern/debug/deg_debug_stats_gnuplot.cc')
-rw-r--r-- | source/blender/depsgraph/intern/debug/deg_debug_stats_gnuplot.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/depsgraph/intern/debug/deg_debug_stats_gnuplot.cc b/source/blender/depsgraph/intern/debug/deg_debug_stats_gnuplot.cc index 98a2d09c352..42c1fcba1bb 100644 --- a/source/blender/depsgraph/intern/debug/deg_debug_stats_gnuplot.cc +++ b/source/blender/depsgraph/intern/debug/deg_debug_stats_gnuplot.cc @@ -66,8 +66,8 @@ void deg_debug_fprintf(const DebugContext &ctx, const char *fmt, ...) inline double get_node_time(const DebugContext & /*ctx*/, const Node *node) { - // TODO(sergey): Figure out a nice way to define which exact time - // we want to show. + /* TODO(sergey): Figure out a nice way to define which exact time + * we want to show. */ return node->stats.current_time; } @@ -97,7 +97,7 @@ string gnuplotify_name(const string &name) void write_stats_data(const DebugContext &ctx) { - // Fill in array of all stats which are to be displayed. + /* Fill in array of all stats which are to be displayed. */ Vector<StatsEntry> stats; stats.reserve(ctx.graph->id_nodes.size()); for (const IDNode *id_node : ctx.graph->id_nodes) { @@ -110,12 +110,12 @@ void write_stats_data(const DebugContext &ctx) entry.time = time; stats.append(entry); } - // Sort the data. + /* Sort the data. */ std::sort(stats.begin(), stats.end(), stat_entry_comparator); - // We limit number of entries, otherwise things become unreadable. + /* We limit number of entries, otherwise things become unreadable. */ stats.resize(min_ii(stats.size(), 32)); std::reverse(stats.begin(), stats.end()); - // Print data to the file stream. + /* Print data to the file stream. */ deg_debug_fprintf(ctx, "$data << EOD" NL); for (const StatsEntry &entry : stats) { deg_debug_fprintf(ctx, @@ -129,14 +129,14 @@ void write_stats_data(const DebugContext &ctx) void deg_debug_stats_gnuplot(const DebugContext &ctx) { - // Data itself. + /* Data itself. */ write_stats_data(ctx); - // Optional label. + /* Optional label. */ if (ctx.label && ctx.label[0]) { deg_debug_fprintf(ctx, "set title \"%s\"" NL, ctx.label); } - // Rest of the commands. - // TODO(sergey): Need to decide on the resolution somehow. + /* Rest of the commands. + * TODO(sergey): Need to decide on the resolution somehow. */ deg_debug_fprintf(ctx, "set terminal pngcairo size 1920,1080" NL); deg_debug_fprintf(ctx, "set output \"%s\"" NL, ctx.output_filename); deg_debug_fprintf(ctx, "set grid" NL); |