File: stack-multithread.yaml

package info (click to toggle)
llvm-toolchain-17 1%3A17.0.6-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,799,624 kB
  • sloc: cpp: 6,428,607; ansic: 1,383,196; asm: 793,408; python: 223,504; objc: 75,364; f90: 60,502; lisp: 33,869; pascal: 15,282; sh: 9,684; perl: 7,453; ml: 4,937; awk: 3,523; makefile: 2,889; javascript: 2,149; xml: 888; fortran: 619; cs: 573
file content (83 lines) | stat: -rw-r--r-- 4,047 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#RUN: llvm-xray stack --per-thread-stacks %s | FileCheck %s --check-prefix PER-THREAD
#RUN: llvm-xray stack --aggregate-threads %s | FileCheck %s --check-prefix AGGREGATE

---
header:
  version: 1
  type: 0
  constant-tsc: true
  nonstop-tsc: true
  cycle-frequency: 2601000000
records:
  - { type: 0, func-id: 1, cpu: 1, thread: 111, kind: function-enter, tsc: 10001 }
  - { type: 0, func-id: 1, cpu: 1, thread: 111, kind: function-enter, tsc: 10100 }
  - { type: 1, func-id: 1, cpu: 1, thread: 111, kind: function-exit, tsc: 10101 }
  - { type: 1, func-id: 1, cpu: 1, thread: 111, kind: function-exit, tsc: 10301 }
  - { type: 0, func-id: 1, cpu: 1, thread: 111, kind: function-enter, tsc: 10401 }
  - { type: 0, func-id: 2, cpu: 1, thread: 111, kind: function-enter, tsc: 10501 }
  - { type: 0, func-id: 3, cpu: 1, thread: 111, kind: function-enter, tsc: 10601 }
  - { type: 1, func-id: 3, cpu: 1, thread: 111, kind: function-exit, tsc: 10701 }
  - { type: 1, func-id: 2, cpu: 1, thread: 111, kind: function-exit, tsc: 10751 }
  - { type: 1, func-id: 1, cpu: 1, thread: 111, kind: function-exit, tsc: 10775 }
  - { type: 0, func-id: 1, cpu: 1, thread: 123, kind: function-enter, tsc: 10401 }
  - { type: 0, func-id: 2, cpu: 1, thread: 123, kind: function-enter, tsc: 10501 }
  - { type: 0, func-id: 3, cpu: 1, thread: 123, kind: function-enter, tsc: 10701 }
  - { type: 1, func-id: 3, cpu: 1, thread: 123, kind: function-exit, tsc: 10801 }
  - { type: 1, func-id: 2, cpu: 1, thread: 123, kind: function-exit, tsc: 10951 }
  - { type: 1, func-id: 1, cpu: 1, thread: 123, kind: function-exit, tsc: 11075 }
  - { type: 0, func-id: 2, cpu: 1, thread: 200, kind: function-enter, tsc: 0 }
  - { type: 0, func-id: 3, cpu: 1, thread: 200, kind: function-enter, tsc: 10 }
  - { type: 1, func-id: 3, cpu: 1, thread: 200, kind: function-exit, tsc: 20 }
  - { type: 1, func-id: 2, cpu: 1, thread: 200, kind: function-exit, tsc: 30 }
...
# PER-THREAD: Thread 123
# PER-THREAD: Unique Stacks: 1
# PER-THREAD: Top 10 Stacks by leaf sum:
# PER-THREAD: Sum: 100
# PER-THREAD: lvl   function{{[[:space:]]+}}count{{[[:space:]]+}}sum
# PER-THREAD: #0    #1{{[[:space:]]+}}1{{[[:space:]]+}}674
# PER-THREAD: #1    #2{{[[:space:]]+}}1{{[[:space:]]+}}450
# PER-THREAD: #2    #3{{[[:space:]]+}}1{{[[:space:]]+}}100
# PER-THREAD: Top 10 Stacks by leaf count:
# PER-THREAD: #0    #1{{[[:space:]]+}}1{{[[:space:]]+}}674
# PER-THREAD: #1    #2{{[[:space:]]+}}1{{[[:space:]]+}}450
# PER-THREAD: #2    #3{{[[:space:]]+}}1{{[[:space:]]+}}100
# PER-THREAD: lvl   function{{[[:space:]]+}}count{{[[:space:]]+}}sum

# AGGREGATE: Unique Stacks: 3
# AGGREGATE: Top 10 Stacks by leaf sum:
# AGGREGATE: Sum: 200

# AGGREGATE: lvl   function{{[[:space:]]+}}count{{[[:space:]]+}}sum
# AGGREGATE: #0    #1{{[[:space:]]+}}3{{[[:space:]]+}}1348
# AGGREGATE: #1    #2{{[[:space:]]+}}2{{[[:space:]]+}}700
# AGGREGATE: #2    #3{{[[:space:]]+}}2{{[[:space:]]+}}200

# AGGREGATE: Sum: 10
# AGGREGATE: lvl   function{{[[:space:]]+}}count{{[[:space:]]+}}sum
# AGGREGATE: #0    #2{{[[:space:]]+}}1{{[[:space:]]+}}30
# AGGREGATE: #1    #3{{[[:space:]]+}}1{{[[:space:]]+}}10

# AGGREGATE: Sum: 1
# AGGREGATE: lvl   function{{[[:space:]]+}}count{{[[:space:]]+}}sum
# AGGREGATE: #0    #1{{[[:space:]]+}}2{{[[:space:]]+}}674
# AGGREGATE: #1    #1{{[[:space:]]+}}1{{[[:space:]]+}}1


# AGGREGATE: Top 10 Stacks by leaf count:

# AGGREGATE: Count: 2
# AGGREGATE: lvl   function{{[[:space:]]+}}count{{[[:space:]]+}}sum
# AGGREGATE: #0    #1{{[[:space:]]+}}3{{[[:space:]]+}}1348
# AGGREGATE: #1    #2{{[[:space:]]+}}2{{[[:space:]]+}}700
# AGGREGATE: #2    #3{{[[:space:]]+}}2{{[[:space:]]+}}200

# AGGREGATE: Count: 1
# AGGREGATE: lvl   function{{[[:space:]]+}}count{{[[:space:]]+}}sum
# AGGREGATE: #0    #2{{[[:space:]]+}}1{{[[:space:]]+}}30
# AGGREGATE: #1    #3{{[[:space:]]+}}1{{[[:space:]]+}}10

# AGGREGATE: Count: 1
# AGGREGATE: lvl   function{{[[:space:]]+}}count{{[[:space:]]+}}sum
# AGGREGATE: #0    #1{{[[:space:]]+}}2{{[[:space:]]+}}674
# AGGREGATE: #1    #1{{[[:space:]]+}}1{{[[:space:]]+}}1