author | dcubed |
Sat, 21 Sep 2019 10:13:25 -0400 | |
changeset 58252 | 14c1ff687621 |
parent 55576 | 4d193e40e7af |
child 58063 | bdf136b8ae0e |
permissions | -rw-r--r-- |
55576
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
1 |
/* |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
2 |
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
3 |
* Copyright (c) 2019, Twitter, Inc. |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
4 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
5 |
* |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
6 |
* This code is free software; you can redistribute it and/or modify it |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
7 |
* under the terms of the GNU General Public License version 2 only, as |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
8 |
* published by the Free Software Foundation. |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
9 |
* |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
10 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
11 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
12 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
13 |
* version 2 for more details (a copy is included in the LICENSE file that |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
14 |
* accompanied this code). |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
15 |
* |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
16 |
* You should have received a copy of the GNU General Public License version |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
17 |
* 2 along with this work; if not, write to the Free Software Foundation, |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
18 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
19 |
* |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
20 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
21 |
* or visit www.oracle.com if you need additional information or have any |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
22 |
* questions. |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
23 |
* |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
24 |
*/ |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
25 |
|
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
26 |
#include "precompiled.hpp" |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
27 |
|
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
28 |
#include "memory/metaspace.hpp" |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
29 |
#include "memory/metaspace/metaspaceSizesSnapshot.hpp" |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
30 |
|
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
31 |
namespace metaspace { |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
32 |
|
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
33 |
MetaspaceSizesSnapshot::MetaspaceSizesSnapshot() |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
34 |
: _used(MetaspaceUtils::used_bytes()), |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
35 |
_committed(MetaspaceUtils::committed_bytes()), |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
36 |
_non_class_used(MetaspaceUtils::used_bytes(Metaspace::NonClassType)), |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
37 |
_non_class_committed(MetaspaceUtils::committed_bytes(Metaspace::NonClassType)), |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
38 |
_class_used(MetaspaceUtils::used_bytes(Metaspace::ClassType)), |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
39 |
_class_committed(MetaspaceUtils::committed_bytes(Metaspace::ClassType)) { } |
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
40 |
|
4d193e40e7af
8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff
changeset
|
41 |
} // namespace metaspace |