OLD | NEW |
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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 if (pathLen == -1) { | 377 if (pathLen == -1) { |
378 pathLen = TEST_FILE_NAME.lastIndexOf('\\'); | 378 pathLen = TEST_FILE_NAME.lastIndexOf('\\'); |
379 } | 379 } |
380 assertTrue(pathLen != -1); | 380 assertTrue(pathLen != -1); |
381 var testsPath = TEST_FILE_NAME.substr(0, pathLen + 1); | 381 var testsPath = TEST_FILE_NAME.substr(0, pathLen + 1); |
382 var tp = new TickProcessor(new CppEntriesProviderMock(), | 382 var tp = new TickProcessor(new CppEntriesProviderMock(), |
383 separateIc, | 383 separateIc, |
384 TickProcessor.CALL_GRAPH_SIZE, | 384 TickProcessor.CALL_GRAPH_SIZE, |
385 ignoreUnknown, | 385 ignoreUnknown, |
386 stateFilter, | 386 stateFilter, |
387 undefined, | |
388 "0", | 387 "0", |
389 "auto,auto", | 388 "auto,auto", |
390 false, | 389 false, |
391 false, | 390 false, |
392 false, | 391 false, |
393 onlySummary); | 392 onlySummary); |
394 var pm = new PrintMonitor(testsPath + refOutput); | 393 var pm = new PrintMonitor(testsPath + refOutput); |
395 tp.processLogFileInTest(testsPath + logInput); | 394 tp.processLogFileInTest(testsPath + logInput); |
396 tp.printStatistics(); | 395 tp.printStatistics(); |
397 pm.finish(); | 396 pm.finish(); |
(...skipping 20 matching lines...) Expand all Loading... |
418 false], | 417 false], |
419 'OnlySummary': [ | 418 'OnlySummary': [ |
420 false, false, null, | 419 false, false, null, |
421 'tickprocessor-test.log', 'tickprocessor-test.only-summary', true] | 420 'tickprocessor-test.log', 'tickprocessor-test.only-summary', true] |
422 }; | 421 }; |
423 for (var testName in testData) { | 422 for (var testName in testData) { |
424 print('=== testProcessing-' + testName + ' ==='); | 423 print('=== testProcessing-' + testName + ' ==='); |
425 driveTickProcessorTest.apply(null, testData[testName]); | 424 driveTickProcessorTest.apply(null, testData[testName]); |
426 } | 425 } |
427 })(); | 426 })(); |
OLD | NEW |