Mercurial > hg > graal-compiler
comparison src/share/vm/compiler/compileBroker.hpp @ 10405:f2110083203d
8005849: JEP 167: Event-Based JVM Tracing
Reviewed-by: acorn, coleenp, sla
Contributed-by: Karen Kinnear <karen.kinnear@oracle.com>, Bengt Rutisson <bengt.rutisson@oracle.com>, Calvin Cheung <calvin.cheung@oracle.com>, Erik Gahlin <erik.gahlin@oracle.com>, Erik Helin <erik.helin@oracle.com>, Jesper Wilhelmsson <jesper.wilhelmsson@oracle.com>, Keith McGuigan <keith.mcguigan@oracle.com>, Mattias Tobiasson <mattias.tobiasson@oracle.com>, Markus Gronlund <markus.gronlund@oracle.com>, Mikael Auno <mikael.auno@oracle.com>, Nils Eliasson <nils.eliasson@oracle.com>, Nils Loodin <nils.loodin@oracle.com>, Rickard Backman <rickard.backman@oracle.com>, Staffan Larsen <staffan.larsen@oracle.com>, Stefan Karlsson <stefan.karlsson@oracle.com>, Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
author | sla |
---|---|
date | Mon, 10 Jun 2013 11:30:51 +0200 |
parents | 75a28f465a12 |
children | 836a62f43af9 469216acdb28 |
comparison
equal
deleted
inserted
replaced
10404:d0add7016434 | 10405:f2110083203d |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1999, 2013, 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. |
297 // Timers and counters for generating statistics | 297 // Timers and counters for generating statistics |
298 static elapsedTimer _t_total_compilation; | 298 static elapsedTimer _t_total_compilation; |
299 static elapsedTimer _t_osr_compilation; | 299 static elapsedTimer _t_osr_compilation; |
300 static elapsedTimer _t_standard_compilation; | 300 static elapsedTimer _t_standard_compilation; |
301 | 301 |
302 static int _total_compile_count; | |
302 static int _total_bailout_count; | 303 static int _total_bailout_count; |
303 static int _total_invalidated_count; | 304 static int _total_invalidated_count; |
304 static int _total_compile_count; | |
305 static int _total_native_compile_count; | 305 static int _total_native_compile_count; |
306 static int _total_osr_compile_count; | 306 static int _total_osr_compile_count; |
307 static int _total_standard_compile_count; | 307 static int _total_standard_compile_count; |
308 | |
309 static int _sum_osr_bytes_compiled; | 308 static int _sum_osr_bytes_compiled; |
310 static int _sum_standard_bytes_compiled; | 309 static int _sum_standard_bytes_compiled; |
311 static int _sum_nmethod_size; | 310 static int _sum_nmethod_size; |
312 static int _sum_nmethod_code_size; | 311 static int _sum_nmethod_code_size; |
312 static long _peak_compilation_time; | |
313 | 313 |
314 static CompilerThread* make_compiler_thread(const char* name, CompileQueue* queue, CompilerCounters* counters, TRAPS); | 314 static CompilerThread* make_compiler_thread(const char* name, CompileQueue* queue, CompilerCounters* counters, TRAPS); |
315 static void init_compiler_threads(int c1_compiler_count, int c2_compiler_count); | 315 static void init_compiler_threads(int c1_compiler_count, int c2_compiler_count); |
316 static bool compilation_is_complete (methodHandle method, int osr_bci, int comp_level); | 316 static bool compilation_is_complete (methodHandle method, int osr_bci, int comp_level); |
317 static bool compilation_is_prohibited(methodHandle method, int osr_bci, int comp_level); | 317 static bool compilation_is_prohibited(methodHandle method, int osr_bci, int comp_level); |
419 | 419 |
420 static void print_compiler_threads_on(outputStream* st); | 420 static void print_compiler_threads_on(outputStream* st); |
421 | 421 |
422 // compiler name for debugging | 422 // compiler name for debugging |
423 static const char* compiler_name(int comp_level); | 423 static const char* compiler_name(int comp_level); |
424 | |
425 static int get_total_compile_count() { return _total_compile_count; } | |
426 static int get_total_bailout_count() { return _total_bailout_count; } | |
427 static int get_total_invalidated_count() { return _total_invalidated_count; } | |
428 static int get_total_native_compile_count() { return _total_native_compile_count; } | |
429 static int get_total_osr_compile_count() { return _total_osr_compile_count; } | |
430 static int get_total_standard_compile_count() { return _total_standard_compile_count; } | |
431 static int get_sum_osr_bytes_compiled() { return _sum_osr_bytes_compiled; } | |
432 static int get_sum_standard_bytes_compiled() { return _sum_standard_bytes_compiled; } | |
433 static int get_sum_nmethod_size() { return _sum_nmethod_size;} | |
434 static int get_sum_nmethod_code_size() { return _sum_nmethod_code_size; } | |
435 static long get_peak_compilation_time() { return _peak_compilation_time; } | |
436 static long get_total_compilation_time() { return _t_total_compilation.milliseconds(); } | |
424 }; | 437 }; |
425 | 438 |
426 #endif // SHARE_VM_COMPILER_COMPILEBROKER_HPP | 439 #endif // SHARE_VM_COMPILER_COMPILEBROKER_HPP |