Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Unified Diff: tracing/tracing/metrics/v8/gc_metric_test.html

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tracing/tracing/metrics/v8/gc_metric.html ('k') | tracing/tracing/metrics/v8/utils.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/metrics/v8/gc_metric_test.html
diff --git a/tracing/tracing/metrics/v8/gc_metric_test.html b/tracing/tracing/metrics/v8/gc_metric_test.html
index a0e32cfdbb5c09c392aef11f643a793e9f6acf6d..8de3a4c154faa37572bd36c3e5d39aede2d18f2f 100644
--- a/tracing/tracing/metrics/v8/gc_metric_test.html
+++ b/tracing/tracing/metrics/v8/gc_metric_test.html
@@ -19,17 +19,13 @@ tr.b.unittest.testSuite(function() {
function createModel(start, end, slices) {
var opts = {
customizeModelCallback: function(model) {
- var group = new tr.model.SliceGroup(tr.c.TestUtils.newFakeThread());
- var ue = new tr.model.um.AnimationExpectation(
- model, 'test', start, end);
+ var process = model.getOrCreateProcess(1);
+ var thread = process.getOrCreateThread(2);
+ var group = thread.sliceGroup;
slices.forEach(function(slice) {
group.pushSlice(tr.c.TestUtils.newSliceEx(slice));
});
group.createSubSlices();
- group.slices.forEach(function(slice) {
- ue.associatedEvents.push(slice);
- });
- model.userModel.expectations.push(ue);
}
};
var model = tr.c.TestUtils.newModelWithEvents([], opts);
@@ -37,7 +33,7 @@ tr.b.unittest.testSuite(function() {
}
function constructName(name, suffix) {
- return 'Animation-' + name + '_' + suffix;
+ return name + '_' + suffix;
}
function run(slices) {
@@ -241,12 +237,12 @@ tr.b.unittest.testSuite(function() {
[{start: 50, end: 60}, {start: 110, end: 120}]);
var actual = run(slices);
assert.strictEqual(
- actual['Animation-v8-execute-mutator-utilization_pct_095'],
+ actual['v8-execute-mutator-utilization_pct_095'],
mutatorUtilization.percentile(1 - 0.95) * 100);
assert.strictEqual(
- actual['Animation-v8-execute-mutator-utilization_pct_099'],
+ actual['v8-execute-mutator-utilization_pct_099'],
mutatorUtilization.percentile(1 - 0.99) * 100);
- });
+ });
});
</script>
« no previous file with comments | « tracing/tracing/metrics/v8/gc_metric.html ('k') | tracing/tracing/metrics/v8/utils.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698