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

Side by Side Diff: src/spaces.cc

Issue 16901014: CPUProfiler: Simplify logging part of CreateCodeEvent functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: comments addressed Created 7 years, 5 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 | « src/objects.cc ('k') | tools/plot-timer-events.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 1805 matching lines...) Expand 10 before | Expand all | Expand 10 after
1816 CASE(KEYED_LOAD_IC); 1816 CASE(KEYED_LOAD_IC);
1817 CASE(STORE_IC); 1817 CASE(STORE_IC);
1818 CASE(KEYED_STORE_IC); 1818 CASE(KEYED_STORE_IC);
1819 CASE(CALL_IC); 1819 CASE(CALL_IC);
1820 CASE(KEYED_CALL_IC); 1820 CASE(KEYED_CALL_IC);
1821 CASE(UNARY_OP_IC); 1821 CASE(UNARY_OP_IC);
1822 CASE(BINARY_OP_IC); 1822 CASE(BINARY_OP_IC);
1823 CASE(COMPARE_IC); 1823 CASE(COMPARE_IC);
1824 CASE(COMPARE_NIL_IC); 1824 CASE(COMPARE_NIL_IC);
1825 CASE(TO_BOOLEAN_IC); 1825 CASE(TO_BOOLEAN_IC);
1826 CASE(REGEXP);
1826 } 1827 }
1827 } 1828 }
1828 1829
1829 #undef CASE 1830 #undef CASE
1830 1831
1831 PrintF("\n Code kind histograms: \n"); 1832 PrintF("\n Code kind histograms: \n");
1832 for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) { 1833 for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) {
1833 if (isolate->code_kind_statistics()[i] > 0) { 1834 if (isolate->code_kind_statistics()[i] > 0) {
1834 PrintF(" %-20s: %10d bytes\n", table[i], 1835 PrintF(" %-20s: %10d bytes\n", table[i],
1835 isolate->code_kind_statistics()[i]); 1836 isolate->code_kind_statistics()[i]);
(...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after
3234 object->ShortPrint(); 3235 object->ShortPrint();
3235 PrintF("\n"); 3236 PrintF("\n");
3236 } 3237 }
3237 printf(" --------------------------------------\n"); 3238 printf(" --------------------------------------\n");
3238 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); 3239 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes());
3239 } 3240 }
3240 3241
3241 #endif // DEBUG 3242 #endif // DEBUG
3242 3243
3243 } } // namespace v8::internal 3244 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | tools/plot-timer-events.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698