Skip to content

Conversation

ressiwage
Copy link

So the idea is to plot vertical delimiters when a benchmarking program does print("cmdbench point") and then flushes stdout. I think that would be useful to check monotony of a program.
Imagine, for example, that you are decoding frames and you need to check that they are decoding in approximately same time. Then after each decoded frame you are doing the following:

printf("cmdbench point\n");
fflush(stdout);

and each delimiter will be plotted at printf time, see pictures below for example. Each vertical line is captured 'cmdbench point'.
also there is support for several iterations.
plot delimiters

plot
Please review and let me know what do you think.
P.S: I don't really know what to do with alpha, maybe you can figure out

… --help, example in resources/plot_delimiters
@ressiwage ressiwage changed the title added an option to print delimiters on subprosess print added an option to print temporal delimiters on subprosess print Feb 25, 2025
@ressiwage
Copy link
Author

@manzik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant