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

Side by Side Diff: src/v8-counters.cc

Issue 10792014: Track counts/sizes of CODE sub types with --track-gc-object-stats (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 8 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/v8-counters.h ('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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #undef SC 54 #undef SC
55 55
56 #define SC(name) \ 56 #define SC(name) \
57 StatsCounter count_of_##name = { "c:" "V8.CountOf_" #name, NULL, false };\ 57 StatsCounter count_of_##name = { "c:" "V8.CountOf_" #name, NULL, false };\
58 count_of_##name##_ = count_of_##name; \ 58 count_of_##name##_ = count_of_##name; \
59 StatsCounter size_of_##name = { "c:" "V8.SizeOf_" #name, NULL, false };\ 59 StatsCounter size_of_##name = { "c:" "V8.SizeOf_" #name, NULL, false };\
60 size_of_##name##_ = size_of_##name; 60 size_of_##name##_ = size_of_##name;
61 INSTANCE_TYPE_LIST(SC) 61 INSTANCE_TYPE_LIST(SC)
62 #undef SC 62 #undef SC
63 63
64 #define SC(name) \
65 StatsCounter count_of_CODE_TYPE_##name = { \
66 "c:" "V8.CountOf_CODE_TYPE-" #name, NULL, false }; \
67 count_of_CODE_TYPE_##name##_ = count_of_CODE_TYPE_##name; \
68 StatsCounter size_of_CODE_TYPE_##name = { \
69 "c:" "V8.SizeOf_CODE_TYPE-" #name, NULL, false }; \
70 size_of_CODE_TYPE_##name##_ = size_of_CODE_TYPE_##name;
71 CODE_KIND_LIST(SC)
72 #undef SC
73
64 StatsCounter state_counters[] = { 74 StatsCounter state_counters[] = {
65 #define COUNTER_NAME(name) \ 75 #define COUNTER_NAME(name) \
66 { "c:V8.State" #name, NULL, false }, 76 { "c:V8.State" #name, NULL, false },
67 STATE_TAG_LIST(COUNTER_NAME) 77 STATE_TAG_LIST(COUNTER_NAME)
68 #undef COUNTER_NAME 78 #undef COUNTER_NAME
69 }; 79 };
70 80
71 for (int i = 0; i < kSlidingStateWindowCounterCount; ++i) { 81 for (int i = 0; i < kSlidingStateWindowCounterCount; ++i) {
72 state_counters_[i] = state_counters[i]; 82 state_counters_[i] = state_counters[i];
73 } 83 }
74 } 84 }
75 85
76 } } // namespace v8::internal 86 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/v8-counters.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698