mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8043607: Add a GC id as a log decoration similar to PrintGCTimeStamps
Reviewed-by: jwilhelm, ehelin, tschatzl
This commit is contained in:
parent
ad2e593b80
commit
9672a26d51
32 changed files with 404 additions and 174 deletions
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include "precompiled.hpp"
|
||||
#include "compiler/compileLog.hpp"
|
||||
#include "gc_implementation/shared/gcId.hpp"
|
||||
#include "oops/oop.inline.hpp"
|
||||
#include "runtime/arguments.hpp"
|
||||
#include "utilities/defaultStream.hpp"
|
||||
|
@ -240,6 +241,14 @@ void outputStream::date_stamp(bool guard,
|
|||
return;
|
||||
}
|
||||
|
||||
void outputStream::gclog_stamp(const GCId& gc_id) {
|
||||
date_stamp(PrintGCDateStamps);
|
||||
stamp(PrintGCTimeStamps);
|
||||
if (PrintGCID) {
|
||||
print("#%u: ", gc_id.id());
|
||||
}
|
||||
}
|
||||
|
||||
outputStream& outputStream::indent() {
|
||||
while (_position < _indentation) sp();
|
||||
return *this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue