src/share/vm/runtime/perfMemory.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 6772413 Sdiff src/share/vm/runtime

src/share/vm/runtime/perfMemory.cpp

Print this page




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  20  * CA 95054 USA or visit www.sun.com if you need additional information or
  21  * have any questions.
  22  *
  23  */
  24 
  25 # include "incls/_precompiled.incl"
  26 # include "incls/_perfMemory.cpp.incl"
  27 








  28 char*                    PerfMemory::_start = NULL;
  29 char*                    PerfMemory::_end = NULL;
  30 char*                    PerfMemory::_top = NULL;
  31 size_t                   PerfMemory::_capacity = 0;
  32 jint                     PerfMemory::_initialized = false;
  33 PerfDataPrologue*        PerfMemory::_prologue = NULL;
  34 
  35 void perfMemory_init() {
  36 
  37   if (!UsePerfData) return;
  38 
  39   PerfMemory::initialize();
  40 }
  41 
  42 void perfMemory_exit() {
  43 
  44   if (!UsePerfData) return;
  45   if (!PerfMemory::is_initialized()) return;
  46 
  47   // if the StatSampler is active, then we don't want to remove




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  20  * CA 95054 USA or visit www.sun.com if you need additional information or
  21  * have any questions.
  22  *
  23  */
  24 
  25 # include "incls/_precompiled.incl"
  26 # include "incls/_perfMemory.cpp.incl"
  27 
  28 // Prefix of performance data file.
  29 const char               PERFDATA_NAME[] = "hsperfdata";
  30 
  31 // Add 1 for the '_' character between PERFDATA_NAME and pid. The '\0' terminating
  32 // character will be included in the sizeof(PERFDATA_NAME) operation.
  33 static const size_t PERFDATA_FILENAME_LEN = sizeof(PERFDATA_NAME) +
  34                                             UINT_CHARS + 1;
  35 
  36 char*                    PerfMemory::_start = NULL;
  37 char*                    PerfMemory::_end = NULL;
  38 char*                    PerfMemory::_top = NULL;
  39 size_t                   PerfMemory::_capacity = 0;
  40 jint                     PerfMemory::_initialized = false;
  41 PerfDataPrologue*        PerfMemory::_prologue = NULL;
  42 
  43 void perfMemory_init() {
  44 
  45   if (!UsePerfData) return;
  46 
  47   PerfMemory::initialize();
  48 }
  49 
  50 void perfMemory_exit() {
  51 
  52   if (!UsePerfData) return;
  53   if (!PerfMemory::is_initialized()) return;
  54 
  55   // if the StatSampler is active, then we don't want to remove


src/share/vm/runtime/perfMemory.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File