File: t172_trigger_filter.py

package info (click to toggle)
uftrace 0.19-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,372 kB
  • sloc: ansic: 49,879; python: 11,279; asm: 837; makefile: 769; sh: 637; cpp: 627; javascript: 191
file content (23 lines) | stat: -rw-r--r-- 752 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python3

from runtest import TestBase

class TestCase(TestBase):
    def __init__(self):
        TestBase.__init__(self, 'namespace', lang="C++", result="""
# DURATION    TID     FUNCTION
            [ 5908] | main() {
   7.545 us [ 5908] |   operator new();
   0.377 us [ 5908] |   ns::ns1::foo::foo();
            [ 5908] |   ns::ns1::foo::bar() {
   2.694 us [ 5908] |     ns::ns1::foo::bar1();
   1.834 us [ 5908] |     free();
   5.574 us [ 5908] |   } /* ns::ns1::foo::bar */
   1.540 us [ 5908] |   operator delete();
   0.154 us [ 5908] |   operator new();
   0.177 us [ 5908] |   operator delete();
  25.925 us [ 5908] | } /* main */
""")

    def setup(self):
        self.option = '-T main@filter,depth=3 -T ^ns::ns2@notrace'