[go: up one dir, main page]

File: t066_no_demangle.py

package info (click to toggle)
uftrace 0.9.0-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 3,896 kB
  • sloc: ansic: 41,425; python: 7,369; makefile: 698; asm: 488; cpp: 461; sh: 349
file content (23 lines) | stat: -rw-r--r-- 856 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
#!/usr/bin/env python

from runtest import TestBase

class TestCase(TestBase):
    def __init__(self):
        TestBase.__init__(self, 'namespace', lang="C++", result="""
# DURATION    TID     FUNCTION
            [17005] | _ZN2ns3ns13foo3barEv() {
            [17005] |   _ZN2ns3ns13foo4bar1Ev() {
            [17005] |     _ZN2ns3ns13foo4bar2Ev() {
            [17005] |       _ZN2ns3ns13foo4bar3Ev() {
   1.350 us [17005] |         malloc();
   3.245 us [17005] |       } /* _ZN2ns3ns13foo4bar3Ev */
   3.705 us [17005] |     } /* _ZN2ns3ns13foo4bar2Ev */
   4.128 us [17005] |   } /* _ZN2ns3ns13foo4bar1Ev */
   1.463 us [17005] |   free();
   6.702 us [17005] | } /* _ZN2ns3ns13foo3barEv */
""", sort='simple')

    def runcmd(self):
        return '%s --demangle=no -F "_ZN2ns3ns13foo3barEv" %s' % \
            (TestBase.uftrace_cmd, 't-namespace')