OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- Copyright 2012 the V8 project authors. All rights reserved. | 2 <!-- Copyright 2012 the V8 project authors. All rights reserved. |
3 | 3 |
4 Redistribution and use in source and binary forms, with or without | 4 Redistribution and use in source and binary forms, with or without |
5 modification, are permitted provided that the following conditions are | 5 modification, are permitted provided that the following conditions are |
6 met: | 6 met: |
7 * Redistributions of source code must retain the above copyright | 7 * Redistributions of source code must retain the above copyright |
8 notice, this list of conditions and the following disclaimer. | 8 notice, this list of conditions and the following disclaimer. |
9 * Redistributions in binary form must reproduce the above | 9 * Redistributions in binary form must reproduce the above |
10 copyright notice, this list of conditions and the following | 10 copyright notice, this list of conditions and the following |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 } | 75 } |
76 } | 76 } |
77 | 77 |
78 function print(arg) { | 78 function print(arg) { |
79 textout.value+=arg+"\n"; | 79 textout.value+=arg+"\n"; |
80 } | 80 } |
81 | 81 |
82 function start_process() { | 82 function start_process() { |
83 ArgumentsProcessor.DEFAULTS = { | 83 ArgumentsProcessor.DEFAULTS = { |
84 logFileName: 'v8.log', | 84 logFileName: 'v8.log', |
85 snapshotLogFileName: null, | |
86 platform: 'unix', | 85 platform: 'unix', |
87 stateFilter: null, | 86 stateFilter: null, |
88 callGraphSize: 5, | 87 callGraphSize: 5, |
89 ignoreUnknown: false, | 88 ignoreUnknown: false, |
90 separateIc: false, | 89 separateIc: false, |
91 targetRootFS: '', | 90 targetRootFS: '', |
92 nm: 'nm' | 91 nm: 'nm' |
93 }; | 92 }; |
94 | 93 |
95 var entriesProviders = { | 94 var entriesProviders = { |
96 'unix': UnixCppEntriesProvider, | 95 'unix': UnixCppEntriesProvider, |
97 'windows': WindowsCppEntriesProvider, | 96 'windows': WindowsCppEntriesProvider, |
98 'mac': MacCppEntriesProvider | 97 'mac': MacCppEntriesProvider |
99 }; | 98 }; |
100 | 99 |
101 var snapshotLogProcessor; // not used | |
102 | |
103 var tickProcessor = new TickProcessor( | 100 var tickProcessor = new TickProcessor( |
104 new (entriesProviders[ArgumentsProcessor.DEFAULTS.platform])( | 101 new (entriesProviders[ArgumentsProcessor.DEFAULTS.platform])( |
105 ArgumentsProcessor.DEFAULTS.nm, | 102 ArgumentsProcessor.DEFAULTS.nm, |
106 ArgumentsProcessor.DEFAULTS.targetRootFS), | 103 ArgumentsProcessor.DEFAULTS.targetRootFS), |
107 ArgumentsProcessor.DEFAULTS.separateIc, | 104 ArgumentsProcessor.DEFAULTS.separateIc, |
108 ArgumentsProcessor.DEFAULTS.callGraphSize, | 105 ArgumentsProcessor.DEFAULTS.callGraphSize, |
109 ArgumentsProcessor.DEFAULTS.ignoreUnknown, | 106 ArgumentsProcessor.DEFAULTS.ignoreUnknown, |
110 ArgumentsProcessor.DEFAULTS.stateFilter, | 107 ArgumentsProcessor.DEFAULTS.stateFilter); |
111 snapshotLogProcessor); | |
112 | 108 |
113 tickProcessor.processLogChunk(v8log_content); | 109 tickProcessor.processLogChunk(v8log_content); |
114 tickProcessor.printStatistics(); | 110 tickProcessor.printStatistics(); |
115 } | 111 } |
116 | 112 |
117 function Load() { | 113 function Load() { |
118 document.getElementById('fileinput').addEventListener( | 114 document.getElementById('fileinput').addEventListener( |
119 'change', load_logfile, false); | 115 'change', load_logfile, false); |
120 textout = document.getElementById('textout'); | 116 textout = document.getElementById('textout'); |
121 } | 117 } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 <textarea name="myTextArea" cols="120" rows="40" wrap="off" id="textout" | 155 <textarea name="myTextArea" cols="120" rows="40" wrap="off" id="textout" |
160 readonly="yes"></textarea> | 156 readonly="yes"></textarea> |
161 </p> | 157 </p> |
162 <p style="font-style:italic;"> | 158 <p style="font-style:italic;"> |
163 Copyright the V8 Authors - Last change to this page: 12/12/2012 | 159 Copyright the V8 Authors - Last change to this page: 12/12/2012 |
164 </p> | 160 </p> |
165 | 161 |
166 | 162 |
167 </body> | 163 </body> |
168 </html> | 164 </html> |
OLD | NEW |