tools/mac/power/collapse_profile_test.py
def testRepeatedFunction(self):
    """Tests accumulation of samples of the same function over many files."""

    collapser = StackCollapser('./samples.collapsed')
    collapser.read_dtrace_logs('./test_data/repeated/')
    self.assertEquals(collapser.samples, [{
        'frames': ['foo', 'bar', 'baz'],
        'weight': 24
    }])
Tests accumulation of samples of the same function over many files.
Tests accumulation of samples of the same function over many files.
Tests accumulation of samples of the same function over many files .
def testRepeatedFunction(self):
    collapser = StackCollapser('./samples.collapsed')
    collapser.read_dtrace_logs('./test_data/repeated/')
    self.assertEquals(collapser.samples, [{
        'frames': ['foo', 'bar', 'baz'],
        'weight': 24
    }])
def testRepeatedFunction ( self ) : collapser = StackCollapser ( './samples.collapsed' ) collapser . read_dtrace_logs ( './test_data/repeated/' ) self . assertEquals ( collapser . samples , [ { 'frames' : [ 'foo' , 'bar' , 'baz' ] , 'weight' : 24 } ] )
Tests accumulation of samples of the same function over many files.
Tests accumulation of samples of the same function over many files .
"""Tests accumulation of samples of the same function over many files."""
self