Move PerfTest TraceEvent to async
Move the perf test events to use START/FINISH TraceEvent paths, which will work properly if they are not triggered in the right nested order. BUG=http://crbug.com/150584 Review URL: https://chromiumcodereview.appspot.com/11090082 git-svn-id: http://src.chromium.org/svn/trunk/src/build@161942 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
7edfa19a1c
Коммит
93af23274a
|
@ -16,12 +16,12 @@ def GetAverageRunInfo(json_data, name):
|
|||
[
|
||||
{ "cat": "Java",
|
||||
"ts": 10000000000,
|
||||
"ph": "B",
|
||||
"ph": "S",
|
||||
"name": "TestTrace"
|
||||
},
|
||||
{ "cat": "Java",
|
||||
"ts": 10000004000,
|
||||
"ph": "E",
|
||||
"ph": "F",
|
||||
"name": "TestTrace"
|
||||
},
|
||||
...
|
||||
|
@ -106,11 +106,11 @@ def GetAverageRunInfo(json_data, name):
|
|||
raise Exception('Entry did not contain expected value type "%s" '
|
||||
'information: %s' % (val_type, entry))
|
||||
val = GetVal(entry)
|
||||
if (entry['ph'] == 'B' and
|
||||
if (entry['ph'] == 'S' and
|
||||
(result['type'] == 'Unknown' or result['type'] == 'Span')):
|
||||
result['type'] = 'Span'
|
||||
last_val = val
|
||||
elif ((entry['ph'] == 'E' and result['type'] == 'Span') or
|
||||
elif ((entry['ph'] == 'F' and result['type'] == 'Span') or
|
||||
(entry['ph'] == 'I' and (result['type'] == 'Unknown' or
|
||||
result['type'] == 'Instant'))):
|
||||
if last_val > 0:
|
||||
|
|
Загрузка…
Ссылка в новой задаче