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

Side by Side Diff: tools/tickprocessor.js

Issue 22412003: Support idle time in CPU profiler (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comment addressed Created 7 years, 4 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 | « test/cctest/test-log-stack-tracer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 this.currentProducerProfile_ = null; 242 this.currentProducerProfile_ = null;
243 }; 243 };
244 inherits(TickProcessor, LogReader); 244 inherits(TickProcessor, LogReader);
245 245
246 246
247 TickProcessor.VmStates = { 247 TickProcessor.VmStates = {
248 JS: 0, 248 JS: 0,
249 GC: 1, 249 GC: 1,
250 COMPILER: 2, 250 COMPILER: 2,
251 OTHER: 3, 251 OTHER: 3,
252 EXTERNAL: 4 252 EXTERNAL: 4,
253 IDLE: 5
253 }; 254 };
254 255
255 256
256 TickProcessor.CodeTypes = { 257 TickProcessor.CodeTypes = {
257 CPP: 0, 258 CPP: 0,
258 SHARED_LIB: 1 259 SHARED_LIB: 1
259 }; 260 };
260 // Otherwise, this is JS-related code. We are not adding it to 261 // Otherwise, this is JS-related code. We are not adding it to
261 // codeTypes_ map because there can be zillions of them. 262 // codeTypes_ map because there can be zillions of them.
262 263
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 if (arg !== synArg && dispatch === this.argsDispatch_[synArg]) { 904 if (arg !== synArg && dispatch === this.argsDispatch_[synArg]) {
904 synonims.push(synArg); 905 synonims.push(synArg);
905 delete this.argsDispatch_[synArg]; 906 delete this.argsDispatch_[synArg];
906 } 907 }
907 } 908 }
908 print(' ' + padRight(synonims.join(', '), 20) + dispatch[2]); 909 print(' ' + padRight(synonims.join(', '), 20) + dispatch[2]);
909 } 910 }
910 quit(2); 911 quit(2);
911 }; 912 };
912 913
OLDNEW
« no previous file with comments | « test/cctest/test-log-stack-tracer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698