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

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

Issue 40003002: Add support for tracking NotExectuted/ExecutedOnceCodeAge's when --track_gc_object_stats flag is se… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix nit Created 7 years, 1 month 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') | src/v8-counters.cc » ('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 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 StatsCounter* size_of_FIXED_ARRAY_##name() \ 334 StatsCounter* size_of_FIXED_ARRAY_##name() \
335 { return &size_of_FIXED_ARRAY_##name##_; } 335 { return &size_of_FIXED_ARRAY_##name##_; }
336 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(SC) 336 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(SC)
337 #undef SC 337 #undef SC
338 338
339 #define SC(name) \ 339 #define SC(name) \
340 StatsCounter* count_of_CODE_AGE_##name() \ 340 StatsCounter* count_of_CODE_AGE_##name() \
341 { return &count_of_CODE_AGE_##name##_; } \ 341 { return &count_of_CODE_AGE_##name##_; } \
342 StatsCounter* size_of_CODE_AGE_##name() \ 342 StatsCounter* size_of_CODE_AGE_##name() \
343 { return &size_of_CODE_AGE_##name##_; } 343 { return &size_of_CODE_AGE_##name##_; }
344 CODE_AGE_LIST_WITH_NO_AGE(SC) 344 CODE_AGE_LIST_COMPLETE(SC)
345 #undef SC 345 #undef SC
346 346
347 enum Id { 347 enum Id {
348 #define RATE_ID(name, caption) k_##name, 348 #define RATE_ID(name, caption) k_##name,
349 HISTOGRAM_TIMER_LIST(RATE_ID) 349 HISTOGRAM_TIMER_LIST(RATE_ID)
350 #undef RATE_ID 350 #undef RATE_ID
351 #define PERCENTAGE_ID(name, caption) k_##name, 351 #define PERCENTAGE_ID(name, caption) k_##name,
352 HISTOGRAM_PERCENTAGE_LIST(PERCENTAGE_ID) 352 HISTOGRAM_PERCENTAGE_LIST(PERCENTAGE_ID)
353 #undef PERCENTAGE_ID 353 #undef PERCENTAGE_ID
354 #define MEMORY_ID(name, caption) k_##name, 354 #define MEMORY_ID(name, caption) k_##name,
355 HISTOGRAM_MEMORY_LIST(MEMORY_ID) 355 HISTOGRAM_MEMORY_LIST(MEMORY_ID)
356 #undef MEMORY_ID 356 #undef MEMORY_ID
357 #define COUNTER_ID(name, caption) k_##name, 357 #define COUNTER_ID(name, caption) k_##name,
358 STATS_COUNTER_LIST_1(COUNTER_ID) 358 STATS_COUNTER_LIST_1(COUNTER_ID)
359 STATS_COUNTER_LIST_2(COUNTER_ID) 359 STATS_COUNTER_LIST_2(COUNTER_ID)
360 #undef COUNTER_ID 360 #undef COUNTER_ID
361 #define COUNTER_ID(name) kCountOf##name, kSizeOf##name, 361 #define COUNTER_ID(name) kCountOf##name, kSizeOf##name,
362 INSTANCE_TYPE_LIST(COUNTER_ID) 362 INSTANCE_TYPE_LIST(COUNTER_ID)
363 #undef COUNTER_ID 363 #undef COUNTER_ID
364 #define COUNTER_ID(name) kCountOfCODE_TYPE_##name, \ 364 #define COUNTER_ID(name) kCountOfCODE_TYPE_##name, \
365 kSizeOfCODE_TYPE_##name, 365 kSizeOfCODE_TYPE_##name,
366 CODE_KIND_LIST(COUNTER_ID) 366 CODE_KIND_LIST(COUNTER_ID)
367 #undef COUNTER_ID 367 #undef COUNTER_ID
368 #define COUNTER_ID(name) kCountOfFIXED_ARRAY__##name, \ 368 #define COUNTER_ID(name) kCountOfFIXED_ARRAY__##name, \
369 kSizeOfFIXED_ARRAY__##name, 369 kSizeOfFIXED_ARRAY__##name,
370 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(COUNTER_ID) 370 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(COUNTER_ID)
371 #undef COUNTER_ID 371 #undef COUNTER_ID
372 #define COUNTER_ID(name) kCountOfCODE_AGE__##name, \ 372 #define COUNTER_ID(name) kCountOfCODE_AGE__##name, \
373 kSizeOfCODE_AGE__##name, 373 kSizeOfCODE_AGE__##name,
374 CODE_AGE_LIST_WITH_NO_AGE(COUNTER_ID) 374 CODE_AGE_LIST_COMPLETE(COUNTER_ID)
375 #undef COUNTER_ID 375 #undef COUNTER_ID
376 stats_counter_count 376 stats_counter_count
377 }; 377 };
378 378
379 void ResetHistograms(); 379 void ResetHistograms();
380 380
381 private: 381 private:
382 #define HT(name, caption) \ 382 #define HT(name, caption) \
383 HistogramTimer name##_; 383 HistogramTimer name##_;
384 HISTOGRAM_TIMER_LIST(HT) 384 HISTOGRAM_TIMER_LIST(HT)
(...skipping 29 matching lines...) Expand all
414 414
415 #define SC(name) \ 415 #define SC(name) \
416 StatsCounter size_of_FIXED_ARRAY_##name##_; \ 416 StatsCounter size_of_FIXED_ARRAY_##name##_; \
417 StatsCounter count_of_FIXED_ARRAY_##name##_; 417 StatsCounter count_of_FIXED_ARRAY_##name##_;
418 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(SC) 418 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(SC)
419 #undef SC 419 #undef SC
420 420
421 #define SC(name) \ 421 #define SC(name) \
422 StatsCounter size_of_CODE_AGE_##name##_; \ 422 StatsCounter size_of_CODE_AGE_##name##_; \
423 StatsCounter count_of_CODE_AGE_##name##_; 423 StatsCounter count_of_CODE_AGE_##name##_;
424 CODE_AGE_LIST_WITH_NO_AGE(SC) 424 CODE_AGE_LIST_COMPLETE(SC)
425 #undef SC 425 #undef SC
426 426
427 friend class Isolate; 427 friend class Isolate;
428 428
429 explicit Counters(Isolate* isolate); 429 explicit Counters(Isolate* isolate);
430 430
431 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); 431 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters);
432 }; 432 };
433 433
434 } } // namespace v8::internal 434 } } // namespace v8::internal
435 435
436 #endif // V8_V8_COUNTERS_H_ 436 #endif // V8_V8_COUNTERS_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/v8-counters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698