[go: up one dir, main page]

File: t115_replay_field.py

package info (click to toggle)
uftrace 0.13-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,212 kB
  • sloc: ansic: 53,313; python: 9,846; makefile: 838; asm: 703; cpp: 602; sh: 560; javascript: 191
file content (26 lines) | stat: -rw-r--r-- 872 bytes parent folder | download
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
#!/usr/bin/env python

from runtest import TestBase

class TestCase(TestBase):
    def __init__(self):
        TestBase.__init__(self, 'abc', """
#     TIMESTAMP      DURATION    TID     FUNCTION
    75691.369083031            [28337] | main() {
    75691.369083271            [28337] |   a() {
    75691.369083411            [28337] |     b() {
    75691.369083545            [28337] |       c() {
    75691.369083755   0.776 us [28337] |         getpid();
    75691.369085245   1.700 us [28337] |       } /* c */
    75691.369085578   2.167 us [28337] |     } /* b */
    75691.369085788   2.517 us [28337] |   } /* a */
    75691.369085968   2.937 us [28337] | } /* main */
""")

    def prepare(self):
        self.subcmd = 'record'
        return self.runcmd()

    def setup(self):
        self.subcmd = 'replay'
        self.option = '-F main -f time,duration,tid'