Skip to content

Commit

Permalink
Document source of vol_ctxt and inv_ctxt trace metrics (#4333)
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
  • Loading branch information
bentsherman authored Sep 21, 2023
1 parent 4e3e9ac commit 6525b0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/tracing.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,10 @@ The following table shows the fields that can be included in the execution repor
: Number of bytes the process originally dirtied in the page-cache (assuming they will go to disk later). This data is read from file `/proc/$pid/io`.

`vol_ctxt`
: Number of voluntary context switches.
: Number of voluntary context switches. This data is read from field `voluntary_ctxt_switches` in `/proc/$pid/status` file.

`inv_ctxt`
: Number of involuntary context switches.
: Number of involuntary context switches. This data is read from field `nonvoluntary_ctxt_switches` in `/proc/$pid/status` file.

`env`
: The variables defined in task execution environment.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ class TraceRecord implements Serializable {
time: 'time',
env: 'str',
error_action:'str',
vol_ctxt: 'num',
inv_ctxt: 'num',
vol_ctxt: 'num', // -- /proc/$pid/status field 'voluntary_ctxt_switches'
inv_ctxt: 'num', // -- /proc/$pid/status field 'nonvoluntary_ctxt_switches'
hostname: 'str',
cpu_model: 'str'
]
Expand Down

0 comments on commit 6525b0a

Please sign in to comment.