Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/shared/generationCounters.cpp @ 3289:b52782ae3880
6946417: G1: Java VisualVM does not support G1 properly.
Summary: Added counters for jstat
Reviewed-by: tonyp, jwilhelm, stefank, ysr, johnc
author | jmasa |
---|---|
date | Thu, 21 Apr 2011 10:23:44 -0700 |
parents | f95d63e2154a |
children | 8229bd737950 |
comparison
equal
deleted
inserted
replaced
3288:c0dcda80820f | 3289:b52782ae3880 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2002, 2011, 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. |
49 PerfDataManager::create_constant(SUN_GC, cname, PerfData::U_None, | 49 PerfDataManager::create_constant(SUN_GC, cname, PerfData::U_None, |
50 spaces, CHECK); | 50 spaces, CHECK); |
51 | 51 |
52 cname = PerfDataManager::counter_name(_name_space, "minCapacity"); | 52 cname = PerfDataManager::counter_name(_name_space, "minCapacity"); |
53 PerfDataManager::create_constant(SUN_GC, cname, PerfData::U_Bytes, | 53 PerfDataManager::create_constant(SUN_GC, cname, PerfData::U_Bytes, |
54 _virtual_space == NULL ? 0 : | |
54 _virtual_space->committed_size(), CHECK); | 55 _virtual_space->committed_size(), CHECK); |
55 | 56 |
56 cname = PerfDataManager::counter_name(_name_space, "maxCapacity"); | 57 cname = PerfDataManager::counter_name(_name_space, "maxCapacity"); |
57 PerfDataManager::create_constant(SUN_GC, cname, PerfData::U_Bytes, | 58 PerfDataManager::create_constant(SUN_GC, cname, PerfData::U_Bytes, |
59 _virtual_space == NULL ? 0 : | |
58 _virtual_space->reserved_size(), CHECK); | 60 _virtual_space->reserved_size(), CHECK); |
59 | 61 |
60 cname = PerfDataManager::counter_name(_name_space, "capacity"); | 62 cname = PerfDataManager::counter_name(_name_space, "capacity"); |
61 _current_size = PerfDataManager::create_variable(SUN_GC, cname, | 63 _current_size = PerfDataManager::create_variable(SUN_GC, cname, |
62 PerfData::U_Bytes, | 64 PerfData::U_Bytes, |
65 _virtual_space == NULL ? 0 : | |
63 _virtual_space->committed_size(), CHECK); | 66 _virtual_space->committed_size(), CHECK); |
64 } | 67 } |
65 } | 68 } |