OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 'windows': WindowsCppEntriesProvider, | 54 'windows': WindowsCppEntriesProvider, |
55 'mac': MacCppEntriesProvider | 55 'mac': MacCppEntriesProvider |
56 }; | 56 }; |
57 | 57 |
58 var params = processArguments(arguments); | 58 var params = processArguments(arguments); |
59 var sourceMap = null; | 59 var sourceMap = null; |
60 if (params.sourceMap) { | 60 if (params.sourceMap) { |
61 initSourceMapSupport(); | 61 initSourceMapSupport(); |
62 sourceMap = SourceMap.load(params.sourceMap); | 62 sourceMap = SourceMap.load(params.sourceMap); |
63 } | 63 } |
64 var snapshotLogProcessor; | |
65 if (params.snapshotLogFileName) { | |
66 snapshotLogProcessor = new SnapshotLogProcessor(); | |
67 snapshotLogProcessor.processLogFile(params.snapshotLogFileName); | |
68 } | |
69 var tickProcessor = new TickProcessor( | 64 var tickProcessor = new TickProcessor( |
70 new (entriesProviders[params.platform])(params.nm, params.targetRootFS), | 65 new (entriesProviders[params.platform])(params.nm, params.targetRootFS), |
71 params.separateIc, | 66 params.separateIc, |
72 params.callGraphSize, | 67 params.callGraphSize, |
73 params.ignoreUnknown, | 68 params.ignoreUnknown, |
74 params.stateFilter, | 69 params.stateFilter, |
75 snapshotLogProcessor, | |
76 params.distortion, | 70 params.distortion, |
77 params.range, | 71 params.range, |
78 sourceMap, | 72 sourceMap, |
79 params.timedRange, | 73 params.timedRange, |
80 params.pairwiseTimedRange, | 74 params.pairwiseTimedRange, |
81 params.onlySummary); | 75 params.onlySummary); |
82 tickProcessor.processLogFile(params.logFileName); | 76 tickProcessor.processLogFile(params.logFileName); |
83 tickProcessor.printStatistics(); | 77 tickProcessor.printStatistics(); |
OLD | NEW |