Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update configuration/options summary in svg #61

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/bootchart.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@

[Bootchart]
#Samples=500
#Frequency=25
#Frequency=25.0
#Relative=no
#Filter=yes
#Output=<folder name, defaults to /run/log>
#Init=/path/to/init-binary
#Output=<directory name, defaults to /run/log>
#Init=<path to init, defaults to the systemd binary>
#PlotMemoryUsage=no
#PlotEntropyGraph=no
#ScaleX=100
#ScaleY=20
#ScaleX=100.0
#ScaleY=20.0
#ControlGroup=no
#PerCPU=no
#Cmdline=no
25 changes: 17 additions & 8 deletions src/svg.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,23 @@ static void svg_header(FILE *of, struct list_sample_data *head, double graph_sta
fprintf(of, "<!-- such as Chrome, Chromium, or Firefox. Other applications that -->\n");
fprintf(of, "<!-- render these files properly but more slowly are ImageMagick, gimp, -->\n");
fprintf(of, "<!-- inkscape, etc. To display the files on your system, just point -->\n");
fprintf(of, "<!-- your browser to file:///run/log/ and click. This bootchart was -->\n\n");

fprintf(of, "<!-- generated by bootchart version %s, running with options: -->\n", VERSION);
fprintf(of, "<!-- hz=\"%f\" n=\"%d\" -->\n", arg_hz, arg_samples_len);
fprintf(of, "<!-- x=\"%f\" y=\"%f\" -->\n", arg_scale_x, arg_scale_y);
fprintf(of, "<!-- rel=\"%d\" f=\"%d\" -->\n", arg_relative, arg_filter);
fprintf(of, "<!-- p=\"%d\" e=\"%d\" -->\n", arg_pss, arg_entropy);
fprintf(of, "<!-- o=\"%s\" i=\"%s\" -->\n\n", arg_output_path, arg_init_path);
fprintf(of, "<!-- your browser to file:///run/log (the default location) and click. -->\n\n");

fprintf(of, "<!-- This file was generated by bootchart version %s, running with configuration: -->\n\n", VERSION);

fprintf(of, "<!-- Samples=%d -->\n", arg_samples_len);
fprintf(of, "<!-- Frequency=%f -->\n", arg_hz);
fprintf(of, "<!-- Relative=%d -->\n", arg_relative);
fprintf(of, "<!-- Filter=%d -->\n", arg_filter);
fprintf(of, "<!-- Output=%s -->\n", arg_output_path);
fprintf(of, "<!-- Init=%s -->\n", arg_init_path);
fprintf(of, "<!-- PlotMemoryUsage=%d -->\n", arg_pss);
fprintf(of, "<!-- PlotEntropyGraph=%d -->\n", arg_entropy);
fprintf(of, "<!-- ScaleX=%f -->\n", arg_scale_x);
fprintf(of, "<!-- ScaleY=%f -->\n", arg_scale_y);
fprintf(of, "<!-- ControlGroup=%d -->\n", arg_show_cgroup);
fprintf(of, "<!-- PerCPU=%d -->\n", arg_percpu);
fprintf(of, "<!-- Cmdline=%d -->\n\n", arg_show_cmdline);

/* style sheet */
fprintf(of, "<defs>\n <style type=\"text/css\">\n <![CDATA[\n");
Expand Down