fix(benchpress): fix benchpress overreporting in chrome45
closes #4011 Closes #4101
This commit is contained in:
parent
77e8304fc4
commit
0653b82048
|
@ -183,7 +183,8 @@ export class ChromeDriverExtension extends WebDriverExtension {
|
||||||
return normalizeEvent(event, {'name': 'gc', 'args': normArgs});
|
return normalizeEvent(event, {'name': 'gc', 'args': normArgs});
|
||||||
} else if (this._isEvent(categories, name, ['devtools.timeline', 'v8'], 'FunctionCall') &&
|
} else if (this._isEvent(categories, name, ['devtools.timeline', 'v8'], 'FunctionCall') &&
|
||||||
(isBlank(args) || isBlank(args['data']) ||
|
(isBlank(args) || isBlank(args['data']) ||
|
||||||
!StringWrapper.equals(args['data']['scriptName'], 'InjectedScript'))) {
|
(!StringWrapper.equals(args['data']['scriptName'], 'InjectedScript') &&
|
||||||
|
!StringWrapper.equals(args['data']['scriptName'], '')))) {
|
||||||
return normalizeEvent(event, {'name': 'script'});
|
return normalizeEvent(event, {'name': 'script'});
|
||||||
} else if (this._isEvent(categories, name, ['devtools.timeline', 'blink'],
|
} else if (this._isEvent(categories, name, ['devtools.timeline', 'blink'],
|
||||||
'UpdateLayoutTree')) {
|
'UpdateLayoutTree')) {
|
||||||
|
|
|
@ -342,6 +342,17 @@ export function main() {
|
||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
it('should ignore FunctionCalls with empty scriptName',
|
||||||
|
inject([AsyncTestCompleter], (async) => {
|
||||||
|
createExtension(
|
||||||
|
[chromeTimelineV8Events.start('FunctionCall', 0, {'data': {'scriptName': ''}})])
|
||||||
|
.readPerfLog()
|
||||||
|
.then((events) => {
|
||||||
|
expect(events).toEqual([]);
|
||||||
|
async.done();
|
||||||
|
});
|
||||||
|
}));
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue