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

Side by Side Diff: test/mjsunit/tools/tickprocessor.js

Issue 12077043: Add option to limit tick processor to a time range. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: git cl dcommit Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/plot-timer-events » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 var pathLen = TEST_FILE_NAME.lastIndexOf('/'); 373 var pathLen = TEST_FILE_NAME.lastIndexOf('/');
374 if (pathLen == -1) { 374 if (pathLen == -1) {
375 pathLen = TEST_FILE_NAME.lastIndexOf('\\'); 375 pathLen = TEST_FILE_NAME.lastIndexOf('\\');
376 } 376 }
377 assertTrue(pathLen != -1); 377 assertTrue(pathLen != -1);
378 var testsPath = TEST_FILE_NAME.substr(0, pathLen + 1); 378 var testsPath = TEST_FILE_NAME.substr(0, pathLen + 1);
379 var tp = new TickProcessor(new CppEntriesProviderMock(), 379 var tp = new TickProcessor(new CppEntriesProviderMock(),
380 separateIc, 380 separateIc,
381 TickProcessor.CALL_GRAPH_SIZE, 381 TickProcessor.CALL_GRAPH_SIZE,
382 ignoreUnknown, 382 ignoreUnknown,
383 stateFilter); 383 stateFilter,
384 undefined,
385 "0",
386 "auto,auto");
384 var pm = new PrintMonitor(testsPath + refOutput); 387 var pm = new PrintMonitor(testsPath + refOutput);
385 tp.processLogFileInTest(testsPath + logInput); 388 tp.processLogFileInTest(testsPath + logInput);
386 tp.printStatistics(); 389 tp.printStatistics();
387 pm.finish(); 390 pm.finish();
388 }; 391 };
389 392
390 393
391 (function testProcessing() { 394 (function testProcessing() {
392 var testData = { 395 var testData = {
393 'Default': [ 396 'Default': [
(...skipping 10 matching lines...) Expand all
404 'tickprocessor-test.log', 'tickprocessor-test.gc-state'], 407 'tickprocessor-test.log', 'tickprocessor-test.gc-state'],
405 'FunctionInfo': [ 408 'FunctionInfo': [
406 false, false, null, 409 false, false, null,
407 'tickprocessor-test-func-info.log', 'tickprocessor-test.func-info'] 410 'tickprocessor-test-func-info.log', 'tickprocessor-test.func-info']
408 }; 411 };
409 for (var testName in testData) { 412 for (var testName in testData) {
410 print('=== testProcessing-' + testName + ' ==='); 413 print('=== testProcessing-' + testName + ' ===');
411 driveTickProcessorTest.apply(null, testData[testName]); 414 driveTickProcessorTest.apply(null, testData[testName]);
412 } 415 }
413 })(); 416 })();
OLDNEW
« no previous file with comments | « no previous file | tools/plot-timer-events » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698