tools/mac/power/collapse_profile_test.py
def testTrimFunctionOffset(self):
    """Tests removal of the function offset markers in the DTrace format."""

    collapser = StackCollapser('./samples.collapsed')
    collapser.read_dtrace_logs('./test_data/with_offset/')
    self.assertEquals(collapser.samples, [{
        'frames': ['foo', 'bar', 'baz'],
        'weight': 12
    }])
Tests removal of the function offset markers in the DTrace format.
Tests removal of the function offset markers in the DTrace format.
Tests removal of the function offset markers in the DTrace format .
def testTrimFunctionOffset(self):
    collapser = StackCollapser('./samples.collapsed')
    collapser.read_dtrace_logs('./test_data/with_offset/')
    self.assertEquals(collapser.samples, [{
        'frames': ['foo', 'bar', 'baz'],
        'weight': 12
    }])
def testTrimFunctionOffset ( self ) : collapser = StackCollapser ( './samples.collapsed' ) collapser . read_dtrace_logs ( './test_data/with_offset/' ) self . assertEquals ( collapser . samples , [ { 'frames' : [ 'foo' , 'bar' , 'baz' ] , 'weight' : 12 } ] )
Tests removal of the function offset markers in the DTrace format.
Tests removal of the function offset markers in the DTrace format .
"""Tests removal of the function offset markers in the DTrace format."""
self