53 // |
53 // |
54 // NamedCounters are tagged counters which can be used for profiling |
54 // NamedCounters are tagged counters which can be used for profiling |
55 // code in various ways. Currently they are used by the lock coarsening code |
55 // code in various ways. Currently they are used by the lock coarsening code |
56 // |
56 // |
57 |
57 |
58 class NamedCounter : public CHeapObj { |
58 class NamedCounter : public CHeapObj<mtCompiler> { |
59 public: |
59 public: |
60 enum CounterTag { |
60 enum CounterTag { |
61 NoTag, |
61 NoTag, |
62 LockCounter, |
62 LockCounter, |
63 EliminatedLockCounter, |
63 EliminatedLockCounter, |