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

pybootchartgui: Support labeling custom annotations #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bkylerussell
Copy link

@bkylerussell bkylerussell commented Dec 6, 2018

Adds support for specifying custom annotations either individually
through the command line --annotate option, or in bulk through an input
file. This can be useful for decorating the bootchart with other
meaningful time-based data not directly associated with the starting and
stopping of a process.

When providing --annotate with a filename, the file should be formatted
as follows:

<label>  <time>
<label2> <time2>

where is in the format HH:MM:SS, and will be used to calculate a
position in the graph based on the bootchart ending time (displayed in
the graph's header). will appear above the annotation in the
process tree graph (above the seconds header label). If more than one
label is given for a specific , these will be concatenated and
separated by '/'.

This change also supports adding similarly formatted values
directly on the --annotate option along with process names, though not
at the same time as a filename.

Moves the ProcessTree instantiation above the annotation processing to
take advantage of proc_tree.duration when calculating where
should appear on the bootchart.

Signed-off-by: Kyle Russell [email protected]

Adds support for specifying custom annotations either individually
through the command line --annotate option, or in bulk through an input
file.  This can be useful for decorating the bootchart with other
meaningful time-based data not directly associated with the starting and
stopping of a process.

When providing --annotate with a filename, the file should be formatted
as follows:

<label>  <time>
<label2> <time2>

where <time> is in the format HH:MM:SS, and will be used to calculate a
position in the graph based on the bootchart ending time (displayed in
the graph's header).  <label> will appear above the annotation in the
process tree graph (above the seconds header label).  If more than one
label is given for a specific <time>, these will be concatenated and
separated by '/'.

This change also supports adding similarly formatted <time> values
directly on the --annotate option along with process names, though not
at the same time as a filename.

Moves the ProcessTree instantiation above the annotation processing to
take advantage of proc_tree.duration when calculating where <time>
should appear on the bootchart.

Signed-off-by: Kyle Russell <[email protected]>
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