| Index: src/v8-counters.cc
|
| diff --git a/src/v8-counters.cc b/src/v8-counters.cc
|
| index c6aa9cb7f8a3ed8bce78dd03628f9af25c353c70..5372610621a936d320ae5ac066def347c3323a22 100644
|
| --- a/src/v8-counters.cc
|
| +++ b/src/v8-counters.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2007-2008 the V8 project authors. All rights reserved.
|
| +// Copyright 2012 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -47,6 +47,14 @@ Counters::Counters() {
|
| STATS_COUNTER_LIST_2(SC)
|
| #undef SC
|
|
|
| +#define SC(name) \
|
| + StatsCounter count_of_##name = { "c:" "V8.CountOf_" #name, NULL, false };\
|
| + count_of_##name##_ = count_of_##name; \
|
| + StatsCounter size_of_##name = { "c:" "V8.SizeOf_" #name, NULL, false };\
|
| + size_of_##name##_ = size_of_##name;
|
| + INSTANCE_TYPE_LIST(SC)
|
| +#undef SC
|
| +
|
| StatsCounter state_counters[] = {
|
| #define COUNTER_NAME(name) \
|
| { "c:V8.State" #name, NULL, false },
|
|
|