Mercurial > hg > truffle
comparison src/share/vm/runtime/memprofiler.cpp @ 1490:f03d0a26bf83
6888954: argument formatting for assert() and friends
Reviewed-by: kvn, twisti, apetrusenko, never, dcubed
author | jcoomes |
---|---|
date | Thu, 22 Apr 2010 13:23:15 -0700 |
parents | 0fbdb4381b99 |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
1489:cff162798819 | 1490:f03d0a26bf83 |
---|---|
60 const char *log_name = "mprofile.log"; | 60 const char *log_name = "mprofile.log"; |
61 if (!is_active()) { | 61 if (!is_active()) { |
62 // Create log file | 62 // Create log file |
63 _log_fp = fopen(log_name , "w+"); | 63 _log_fp = fopen(log_name , "w+"); |
64 if (_log_fp == NULL) { | 64 if (_log_fp == NULL) { |
65 fatal1("MemProfiler: Cannot create log file: %s", log_name); | 65 fatal(err_msg("MemProfiler: Cannot create log file: %s", log_name)); |
66 } | 66 } |
67 fprintf(_log_fp, "MemProfiler: sizes are in Kb, time is in seconds since startup\n\n"); | 67 fprintf(_log_fp, "MemProfiler: sizes are in Kb, time is in seconds since startup\n\n"); |
68 fprintf(_log_fp, " time, #thr, #cls, heap, heap, perm, perm, code, hndls, rescs, oopmp\n"); | 68 fprintf(_log_fp, " time, #thr, #cls, heap, heap, perm, perm, code, hndls, rescs, oopmp\n"); |
69 fprintf(_log_fp, " used, total, used, total, total, total, total, total\n"); | 69 fprintf(_log_fp, " used, total, used, total, total, total, total, total\n"); |
70 fprintf(_log_fp, "--------------------------------------------------------------------------\n"); | 70 fprintf(_log_fp, "--------------------------------------------------------------------------\n"); |