#!/usr/bin/env python3

from runtest import TestBase

class TestCase(TestBase):
    def __init__(self):
        TestBase.__init__(self, 'allocfree', """
# DURATION    TID     FUNCTION
            [20175] | alloc1() {
            [20175] |   alloc3() {
   5.792 us [20175] |     alloc5();
   7.914 us [20175] |   } /* alloc3 */
 114.958 us [20175] | } /* alloc1 */
""", sort='simple')

    def setup(self):
        self.option = '-D1 -F "alloc[135]"'
