Skip to content

Commit

Permalink
tools/profile_example.txt: Modifies document structure
Browse files Browse the repository at this point in the history
Matches option explanations and examples

  Document structure before modification
    (a) Explain -U and -K option
    (b) Show -C option example
    (c) Explain (b)
    (d) Show -U option example

  Modified document structure
    (e) Explain -C option
    (b) Show -C option example
    (c) Explain (b)
    (a) Explain -U and -K option
    (d) Show -U option example
  • Loading branch information
Bojun-Seo authored and yonghong-song committed Jun 16, 2024
1 parent 69cc7f6 commit 5596f67
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tools/profile_example.txt
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,7 @@ Sampling at 9 Hertz of all threads by user + kernel stack... Hit Ctrl-C to end.
[...]


You can also restrict profiling to just kernel stacks (-K) or user stacks (-U).
For example, just user stacks:
You can specify a cpu number using the -C option. Eg, profiling core/cpu (#7):

# ./profile -C 7 2
Sampling at 49 Hertz of all threads by user + kernel stack on CPU#7 for 2 secs.
Expand Down Expand Up @@ -624,7 +623,11 @@ Sampling at 49 Hertz of all threads by user + kernel stack on CPU#7 for 2 secs.
- python (2827439)

in this example python application was busylooping on a single core/cpu (#7)
we were collecting stack traces only from it
we were collecting stack traces only from it.


You can also restrict profiling to just kernel stacks (-K) or user stacks (-U).
For example, just user stacks:

# ./profile -U
Sampling at 49 Hertz of all threads by user stack... Hit Ctrl-C to end.
Expand Down

0 comments on commit 5596f67

Please sign in to comment.