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

Side by Side Diff: tools/tickprocessor.js

Issue 574005: Fix issue 597: builtins and stubs are missing in profiler log when using snapshots. (Closed)
Patch Set: Created 10 years, 10 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
« src/log.cc ('K') | « src/v8.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 function SnapshotLogProcessor() { 60 function SnapshotLogProcessor() {
61 devtools.profiler.LogReader.call(this, { 61 devtools.profiler.LogReader.call(this, {
62 'code-creation': { 62 'code-creation': {
63 parsers: [null, this.createAddressParser('code'), parseInt, null], 63 parsers: [null, this.createAddressParser('code'), parseInt, null],
64 processor: this.processCodeCreation, backrefs: true }, 64 processor: this.processCodeCreation, backrefs: true },
65 'code-move': { parsers: [this.createAddressParser('code'), 65 'code-move': { parsers: [this.createAddressParser('code'),
66 this.createAddressParser('code-move-to')], 66 this.createAddressParser('code-move-to')],
67 processor: this.processCodeMove, backrefs: true }, 67 processor: this.processCodeMove, backrefs: true },
68 'code-delete': { parsers: [this.createAddressParser('code')], 68 'code-delete': { parsers: [this.createAddressParser('code')],
69 processor: this.processCodeDelete, backrefs: true }, 69 processor: this.processCodeDelete, backrefs: true },
70 'function-creation': null,
71 'function-move': null,
72 'function-delete': null,
70 'snapshot-pos': { parsers: [this.createAddressParser('code'), parseInt], 73 'snapshot-pos': { parsers: [this.createAddressParser('code'), parseInt],
71 processor: this.processSnapshotPosition, backrefs: true }}); 74 processor: this.processSnapshotPosition, backrefs: true }});
72 75
73 Profile.prototype.handleUnknownCode = function(operation, addr) { 76 Profile.prototype.handleUnknownCode = function(operation, addr) {
74 var op = devtools.profiler.Profile.Operation; 77 var op = devtools.profiler.Profile.Operation;
75 switch (operation) { 78 switch (operation) {
76 case op.MOVE: 79 case op.MOVE:
77 print('Snapshot: Code move event for unknown code: 0x' + 80 print('Snapshot: Code move event for unknown code: 0x' +
78 addr.toString(16)); 81 addr.toString(16));
79 break; 82 break;
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 if (arg !== synArg && dispatch === this.argsDispatch_[synArg]) { 843 if (arg !== synArg && dispatch === this.argsDispatch_[synArg]) {
841 synonims.push(synArg); 844 synonims.push(synArg);
842 delete this.argsDispatch_[synArg]; 845 delete this.argsDispatch_[synArg];
843 } 846 }
844 } 847 }
845 print(' ' + padRight(synonims.join(', '), 20) + dispatch[2]); 848 print(' ' + padRight(synonims.join(', '), 20) + dispatch[2]);
846 } 849 }
847 quit(2); 850 quit(2);
848 }; 851 };
849 852
OLDNEW
« src/log.cc ('K') | « src/v8.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698