hotspot/src/share/vm/runtime/fprofiler.cpp
changeset 24424 2658d7834c6e
parent 24351 61b33cc6d3cf
child 25715 d5a8dbdc5150
equal deleted inserted replaced
24358:8528b67f6562 24424:2658d7834c6e
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2014, 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.
     7  * published by the Free Software Foundation.
    39 #include "runtime/stubRoutines.hpp"
    39 #include "runtime/stubRoutines.hpp"
    40 #include "runtime/task.hpp"
    40 #include "runtime/task.hpp"
    41 #include "runtime/thread.inline.hpp"
    41 #include "runtime/thread.inline.hpp"
    42 #include "runtime/vframe.hpp"
    42 #include "runtime/vframe.hpp"
    43 #include "utilities/macros.hpp"
    43 #include "utilities/macros.hpp"
       
    44 
       
    45 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
    44 
    46 
    45 // Static fields of FlatProfiler
    47 // Static fields of FlatProfiler
    46 int               FlatProfiler::received_gc_ticks   = 0;
    48 int               FlatProfiler::received_gc_ticks   = 0;
    47 int               FlatProfiler::vm_operation_ticks  = 0;
    49 int               FlatProfiler::vm_operation_ticks  = 0;
    48 int               FlatProfiler::threads_lock_ticks  = 0;
    50 int               FlatProfiler::threads_lock_ticks  = 0;
   307   static void print_total(outputStream* st, tick_counter* t, int total, const char* msg) {
   309   static void print_total(outputStream* st, tick_counter* t, int total, const char* msg) {
   308     t->print_code(st, total);
   310     t->print_code(st, total);
   309     st->fill_to(col2);
   311     st->fill_to(col2);
   310     t->print_native(st);
   312     t->print_native(st);
   311     st->fill_to(col3);
   313     st->fill_to(col3);
   312     st->print(msg);
   314     st->print("%s", msg);
   313     st->cr();
   315     st->cr();
   314   }
   316   }
   315 
   317 
   316   virtual Method* method()         = 0;
   318   virtual Method* method()         = 0;
   317 
   319