Changeset 166711 in webkit


Ignore:
Timestamp:
Apr 3, 2014 2:55:00 AM (10 years ago)
Author:
Manuel Rego Casasnovas
Message:

[webkitpy] perf profiler does not understand --call-graph argument
https://bugs.webkit.org/show_bug.cgi?id=131132

Reviewed by Ryosuke Niwa.

New versions of perf profiler have changed the argument from --call-graph to -g.

  • Scripts/webkitpy/common/system/profiler.py:

(Perf.wrapper_arguments): Use -g instead of --call-graph.

  • Scripts/webkitpy/port/driver_unittest.py:

(DriverTest.test_profiler_as_wrapper): Update test accordingly.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r166710 r166711  
     12014-04-03  Manuel Rego Casasnovas  <rego@igalia.com>
     2
     3        [webkitpy] perf profiler does not understand --call-graph argument
     4        https://bugs.webkit.org/show_bug.cgi?id=131132
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        New versions of perf profiler have changed the argument from --call-graph to -g.
     9
     10        * Scripts/webkitpy/common/system/profiler.py:
     11        (Perf.wrapper_arguments): Use -g instead of --call-graph.
     12        * Scripts/webkitpy/port/driver_unittest.py:
     13        (DriverTest.test_profiler_as_wrapper): Update test accordingly.
     14
    1152014-04-03  Zsolt Borbely  <zsborbely.u-szeged@partner.samsung.com>
    216
  • trunk/Tools/Scripts/webkitpy/common/system/profiler.py

    r163743 r166711  
    149149
    150150    def wrapper_arguments(self):
    151         return [self._perf_path(), "record", "--call-graph", "--output", self._output_path]
     151        return [self._perf_path(), "record", "-g", "--output", self._output_path]
    152152
    153153    def _first_ten_lines_of_profile(self, perf_output):
  • trunk/Tools/Scripts/webkitpy/port/driver_unittest.py

    r155803 r166711  
    102102    def test_profiler_as_wrapper(self):
    103103        driver = Driver(self.make_port(MockSystemHost(os_name='linux'), MockOptions(profile=True, profiler='perf')), None, False)
    104         self.assertEqual(driver._command_wrapper(), ['perf', 'record', '--call-graph', '--output', '/mock-build/layout-test-results/test.data'])
     104        self.assertEqual(driver._command_wrapper(), ['perf', 'record', '-g', '--output', '/mock-build/layout-test-results/test.data'])
    105105
    106106    def test_test_to_uri(self):
Note: See TracChangeset for help on using the changeset viewer.