| OLD | NEW |
| 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 27 matching lines...) Expand all Loading... |
| 38 name##_ = name; | 38 name##_ = name; |
| 39 HISTOGRAM_TIMER_LIST(HT) | 39 HISTOGRAM_TIMER_LIST(HT) |
| 40 #undef HT | 40 #undef HT |
| 41 | 41 |
| 42 #define HP(name, caption) \ | 42 #define HP(name, caption) \ |
| 43 Histogram name = { #caption, 0, 101, 100, NULL, false }; \ | 43 Histogram name = { #caption, 0, 101, 100, NULL, false }; \ |
| 44 name##_ = name; | 44 name##_ = name; |
| 45 HISTOGRAM_PERCENTAGE_LIST(HP) | 45 HISTOGRAM_PERCENTAGE_LIST(HP) |
| 46 #undef HP | 46 #undef HP |
| 47 | 47 |
| 48 #define HM(name, caption) \ |
| 49 Histogram name = { #caption, 1000, 500000, 50, NULL, false }; \ |
| 50 name##_ = name; |
| 51 HISTOGRAM_MEMORY_LIST(HM) |
| 52 #undef HM |
| 53 |
| 48 #define SC(name, caption) \ | 54 #define SC(name, caption) \ |
| 49 StatsCounter name = { "c:" #caption, NULL, false };\ | 55 StatsCounter name = { "c:" #caption, NULL, false };\ |
| 50 name##_ = name; | 56 name##_ = name; |
| 51 | 57 |
| 52 STATS_COUNTER_LIST_1(SC) | 58 STATS_COUNTER_LIST_1(SC) |
| 53 STATS_COUNTER_LIST_2(SC) | 59 STATS_COUNTER_LIST_2(SC) |
| 54 #undef SC | 60 #undef SC |
| 55 | 61 |
| 56 #define SC(name) \ | 62 #define SC(name) \ |
| 57 StatsCounter count_of_##name = { "c:" "V8.CountOf_" #name, NULL, false };\ | 63 StatsCounter count_of_##name = { "c:" "V8.CountOf_" #name, NULL, false };\ |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 } | 100 } |
| 95 | 101 |
| 96 void Counters::ResetHistograms() { | 102 void Counters::ResetHistograms() { |
| 97 #define HT(name, caption) name##_.Reset(); | 103 #define HT(name, caption) name##_.Reset(); |
| 98 HISTOGRAM_TIMER_LIST(HT) | 104 HISTOGRAM_TIMER_LIST(HT) |
| 99 #undef HT | 105 #undef HT |
| 100 | 106 |
| 101 #define HP(name, caption) name##_.Reset(); | 107 #define HP(name, caption) name##_.Reset(); |
| 102 HISTOGRAM_PERCENTAGE_LIST(HP) | 108 HISTOGRAM_PERCENTAGE_LIST(HP) |
| 103 #undef HP | 109 #undef HP |
| 110 |
| 111 #define HM(name, caption) name##_.Reset(); |
| 112 HISTOGRAM_MEMORY_LIST(HM) |
| 113 #undef HM |
| 104 } | 114 } |
| 105 | 115 |
| 106 } } // namespace v8::internal | 116 } } // namespace v8::internal |
| OLD | NEW |