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

Unified Diff: tracing/tracing/model/model_test.html

Issue 2016863004: Removed the isTimeHighResolutionHeuristic_ heuristic. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git@master
Patch Set: Created 4 years, 7 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/model/model.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/model_test.html
diff --git a/tracing/tracing/model/model_test.html b/tracing/tracing/model/model_test.html
index b358eb7eec83ea185f55e4a708f113f8e893e836..97bb9d35189dbdb7c2a656885e21cc347284bdf3 100644
--- a/tracing/tracing/model/model_test.html
+++ b/tracing/tracing/model/model_test.html
@@ -279,33 +279,6 @@ tr.b.unittest.testSuite(function() {
assert.equal(m.intrinsicTimeUnit, unit.ns);
});
- test('model_highResolutionHeuristicTrue', function() {
- var m = new tr.Model();
- var t = m.getOrCreateProcess(1).getOrCreateThread(1);
- // A thousand event not aligned on a millisecond.
- for (var i = 0; i < 1000; ++i) {
- var start = 0.53 * i;
- t.sliceGroup.pushSlice(new ThreadSlice('c', 'a', 0, start, {}, 1));
- }
- assert.isTrue(m.isTimeHighResolution);
- });
-
- test('model_highResolutionHeuristicFalse', function() {
- var m = new tr.Model();
- var t = m.getOrCreateProcess(1).getOrCreateThread(1);
- // A thousand event aligned on a millisecond.
- for (var i = 0; i < 1000; ++i) {
- var start = 0.753 + i;
- t.sliceGroup.pushSlice(new ThreadSlice('c', 'a', 0, start, {}, 1));
- }
- // And fifty not aligned on anything.
- for (var i = 0; i < 50; ++i) {
- var start = 0.53 * i;
- t.sliceGroup.pushSlice(new ThreadSlice('c', 'a', 0, start, {}, 1));
- }
- assert.isFalse(m.isTimeHighResolution);
- });
-
test('model_getAllProcesses', function() {
var m = new tr.Model();
var p1 = m.getOrCreateProcess(1);
« no previous file with comments | « tracing/tracing/model/model.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698