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

Side by Side Diff: tools/logreader.js

Issue 638633002: Tick processor: Print C++ entry points (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebased Created 6 years, 2 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 | « tools/codemap.js ('k') | tools/profile.js » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 for (var i = 0, n = stack.length; i < n; ++i) { 101 for (var i = 0, n = stack.length; i < n; ++i) {
102 var frame = stack[i]; 102 var frame = stack[i];
103 var firstChar = frame.charAt(0); 103 var firstChar = frame.charAt(0);
104 if (firstChar == '+' || firstChar == '-') { 104 if (firstChar == '+' || firstChar == '-') {
105 // An offset from the previous frame. 105 // An offset from the previous frame.
106 prevFrame += parseInt(frame, 16); 106 prevFrame += parseInt(frame, 16);
107 fullStack.push(prevFrame); 107 fullStack.push(prevFrame);
108 // Filter out possible 'overflow' string. 108 // Filter out possible 'overflow' string.
109 } else if (firstChar != 'o') { 109 } else if (firstChar != 'o') {
110 fullStack.push(parseInt(frame, 16)); 110 fullStack.push(parseInt(frame, 16));
111 } else {
112 print("dropping: " + frame);
111 } 113 }
112 } 114 }
113 return fullStack; 115 return fullStack;
114 }; 116 };
115 117
116 118
117 /** 119 /**
118 * Returns whether a particular dispatch must be skipped. 120 * Returns whether a particular dispatch must be skipped.
119 * 121 *
120 * @param {!Object} dispatch Dispatch record. 122 * @param {!Object} dispatch Dispatch record.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 continue; 177 continue;
176 } 178 }
177 try { 179 try {
178 var fields = this.csvParser_.parseLine(line); 180 var fields = this.csvParser_.parseLine(line);
179 this.dispatchLogRow_(fields); 181 this.dispatchLogRow_(fields);
180 } catch (e) { 182 } catch (e) {
181 this.printError('line ' + (this.lineNum_ + 1) + ': ' + (e.message || e)); 183 this.printError('line ' + (this.lineNum_ + 1) + ': ' + (e.message || e));
182 } 184 }
183 } 185 }
184 }; 186 };
OLDNEW
« no previous file with comments | « tools/codemap.js ('k') | tools/profile.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698