src/share/vm/trace/traceBackend.hpp
Print this page
rev 4372 : 8012182: Add information about class loading and unloading to event based tracing framework
Reviewed-by:
*** 31,51 ****
#include "runtime/globals.hpp"
#include "runtime/os.hpp"
class TraceBackend {
public:
! static bool enabled(TraceEventId id) {
return EnableTracing;
}
static TracingTime time() {
return os::elapsed_counter();
}
static TracingTime time_adjustment(jlong time) {
return time;
}
};
typedef TraceBackend Tracing;
#endif /* INCLUDE_TRACE */
--- 31,58 ----
#include "runtime/globals.hpp"
#include "runtime/os.hpp"
class TraceBackend {
public:
! static bool enabled(void) {
return EnableTracing;
}
+ static bool is_event_enabled(TraceEventId id) {
+ return enabled();
+ }
+
static TracingTime time() {
return os::elapsed_counter();
}
static TracingTime time_adjustment(jlong time) {
return time;
}
+
+ static void on_unloading_classes(BoolObjectClosure* is_alive, int no_of_classes_unloading) {
+ }
};
typedef TraceBackend Tracing;
#endif /* INCLUDE_TRACE */