equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
61 CHECK); |
61 CHECK); |
62 } |
62 } |
63 } |
63 } |
64 |
64 |
65 CollectorCounters::~CollectorCounters() { |
65 CollectorCounters::~CollectorCounters() { |
66 if (_name_space != NULL) { |
66 FREE_C_HEAP_ARRAY(char, _name_space); |
67 FREE_C_HEAP_ARRAY(char, _name_space); |
|
68 } |
|
69 } |
67 } |
70 |
68 |
71 TraceCollectorStats::TraceCollectorStats(CollectorCounters* c) : |
69 TraceCollectorStats::TraceCollectorStats(CollectorCounters* c) : |
72 PerfTraceTimedEvent(c->time_counter(), c->invocation_counter()), |
70 PerfTraceTimedEvent(c->time_counter(), c->invocation_counter()), |
73 _c(c) { |
71 _c(c) { |