src/java.base/share/classes/jdk/internal/platform/Metrics.java
changeset 53563 a4b7ea85d668
parent 50545 292a4a87c321
equal deleted inserted replaced
53559:1ae0b76bb5df 53563:a4b7ea85d668
     1 /*
     1 /*
     2  * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2018, 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.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   276     /**
   276     /**
   277      * Returns the (attempts per second * 1000), if enabled, that the
   277      * Returns the (attempts per second * 1000), if enabled, that the
   278      * operating system tries to satisfy a memory request for any
   278      * operating system tries to satisfy a memory request for any
   279      * process in the current Isolation Group when no free memory is
   279      * process in the current Isolation Group when no free memory is
   280      * readily available.  Use {@link #isCpuSetMemoryPressureEnabled()} to
   280      * readily available.  Use {@link #isCpuSetMemoryPressureEnabled()} to
   281      * to determine if this support is enabled.
   281      * determine if this support is enabled.
   282      *
   282      *
   283      * @return Memory pressure or 0 if not enabled or metric is not
   283      * @return Memory pressure or 0 if not enabled or metric is not
   284      *         available.
   284      *         available.
   285      *
   285      *
   286      */
   286      */
   320 
   320 
   321     /**
   321     /**
   322      * Returns the largest amount of physical memory, in bytes, that
   322      * Returns the largest amount of physical memory, in bytes, that
   323      * have been allocated in the Isolation Group.
   323      * have been allocated in the Isolation Group.
   324      *
   324      *
   325      * @return The largest amount of memory in bytes or or 0 if this
   325      * @return The largest amount of memory in bytes or 0 if this
   326      *         metric is not available.
   326      *         metric is not available.
   327      *
   327      *
   328      */
   328      */
   329     public long getMemoryMaxUsage();
   329     public long getMemoryMaxUsage();
   330 
   330 
   360 
   360 
   361     /**
   361     /**
   362      * Returns the largest amount of kernel physical memory, in bytes, that
   362      * Returns the largest amount of kernel physical memory, in bytes, that
   363      * have been allocated in the Isolation Group.
   363      * have been allocated in the Isolation Group.
   364      *
   364      *
   365      * @return The largest amount of memory in bytes or or 0 if this
   365      * @return The largest amount of memory in bytes or 0 if this
   366      *         metric is not available.
   366      *         metric is not available.
   367      *
   367      *
   368      */
   368      */
   369     public long getKernelMemoryMaxUsage();
   369     public long getKernelMemoryMaxUsage();
   370 
   370 
   400 
   400 
   401     /**
   401     /**
   402      * Returns the largest amount of networking physical memory, in bytes,
   402      * Returns the largest amount of networking physical memory, in bytes,
   403      * that have been allocated in the Isolation Group.
   403      * that have been allocated in the Isolation Group.
   404      *
   404      *
   405      * @return The largest amount of memory in bytes or or 0 if this
   405      * @return The largest amount of memory in bytes or 0 if this
   406      *         metric is not available.
   406      *         metric is not available.
   407      *
   407      *
   408      */
   408      */
   409     public long getTcpMemoryMaxUsage();
   409     public long getTcpMemoryMaxUsage();
   410 
   410 
   440 
   440 
   441     /**
   441     /**
   442      * Returns the largest amount of physical memory and swap space,
   442      * Returns the largest amount of physical memory and swap space,
   443      * in bytes, that have been allocated in the Isolation Group.
   443      * in bytes, that have been allocated in the Isolation Group.
   444      *
   444      *
   445      * @return The largest amount of memory in bytes or or 0 if this
   445      * @return The largest amount of memory in bytes or 0 if this
   446      *         metric is not available.
   446      *         metric is not available.
   447      *
   447      *
   448      */
   448      */
   449     public long getMemoryAndSwapMaxUsage();
   449     public long getMemoryAndSwapMaxUsage();
   450 
   450