tools/mac/power/collapse_profile_test.py
def testValidBlock(self):
    """Tests basic parsing of the DTrace format."""

    collapser = StackCollapser('./samples.collapsed')
    collapser.read_dtrace_logs('./test_data/valid/')
    self.assertEquals(collapser.samples, [{
        'frames': ['foo', 'bar', 'baz'],
        'weight': 12
    }])
Tests basic parsing of the DTrace format.
Tests basic parsing of the DTrace format.
Tests basic parsing of the DTrace format .
def testValidBlock(self):
    collapser = StackCollapser('./samples.collapsed')
    collapser.read_dtrace_logs('./test_data/valid/')
    self.assertEquals(collapser.samples, [{
        'frames': ['foo', 'bar', 'baz'],
        'weight': 12
    }])
def testValidBlock ( self ) : collapser = StackCollapser ( './samples.collapsed' ) collapser . read_dtrace_logs ( './test_data/valid/' ) self . assertEquals ( collapser . samples , [ { 'frames' : [ 'foo' , 'bar' , 'baz' ] , 'weight' : 12 } ] )
Tests basic parsing of the DTrace format.
Tests basic parsing of the DTrace format .
"""Tests basic parsing of the DTrace format."""
self