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

Side by Side Diff: tools/profviz/worker.js

Issue 1796863002: Remove snapshot log parsing and option from tools. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase on master. Created 4 years, 8 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
« no previous file with comments | « tools/ll_prof.py ('k') | tools/tick-processor.html » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 function() { 99 function() {
100 var profile = ""; 100 var profile = "";
101 print = function(text) { profile += text + "\n"; }; 101 print = function(text) { profile += text + "\n"; };
102 // Dummy entries provider, as we cannot call nm. 102 // Dummy entries provider, as we cannot call nm.
103 var entriesProvider = new UnixCppEntriesProvider("", ""); 103 var entriesProvider = new UnixCppEntriesProvider("", "");
104 var targetRootFS = ""; 104 var targetRootFS = "";
105 var separateIc = false; 105 var separateIc = false;
106 var callGraphSize = 5; 106 var callGraphSize = 5;
107 var ignoreUnknown = true; 107 var ignoreUnknown = true;
108 var stateFilter = null; 108 var stateFilter = null;
109 var snapshotLogProcessor = null;
110 var range = range_start_override + "," + range_end_override; 109 var range = range_start_override + "," + range_end_override;
111 110
112 var tickProcessor = new TickProcessor(entriesProvider, 111 var tickProcessor = new TickProcessor(entriesProvider,
113 separateIc, 112 separateIc,
114 callGraphSize, 113 callGraphSize,
115 ignoreUnknown, 114 ignoreUnknown,
116 stateFilter, 115 stateFilter,
117 snapshotLogProcessor,
118 distortion, 116 distortion,
119 range); 117 range);
120 for (var i = 0; i < content_lines.length; i++) { 118 for (var i = 0; i < content_lines.length; i++) {
121 tickProcessor.processLogLine(content_lines[i]); 119 tickProcessor.processLogLine(content_lines[i]);
122 } 120 }
123 tickProcessor.printStatistics(); 121 tickProcessor.printStatistics();
124 displayprof(profile); 122 displayprof(profile);
125 }); 123 });
126 124
127 var input_file_name = "input_temp"; 125 var input_file_name = "input_temp";
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 162
165 var Module = { 163 var Module = {
166 "noInitialRun": true, 164 "noInitialRun": true,
167 print: function(text) { 165 print: function(text) {
168 self.postMessage({"call": "error", "args": text}); 166 self.postMessage({"call": "error", "args": text});
169 }, 167 },
170 printErr: function(text) { 168 printErr: function(text) {
171 self.postMessage({"call": "error", "args": text}); 169 self.postMessage({"call": "error", "args": text});
172 }, 170 },
173 }; 171 };
OLDNEW
« no previous file with comments | « tools/ll_prof.py ('k') | tools/tick-processor.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698