< prev index next >
src/share/vm/jfr/leakprofiler/leakProfiler.hpp
Print this page
rev 9055 : 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
Reviewed-by: egahlin, rwestberg
*** 26,64 ****
#define SHARE_VM_JFR_LEAKPROFILER_LEAKPROFILER_HPP
#include "memory/allocation.hpp"
class BoolObjectClosure;
- class ObjectSampler;
class OopClosure;
- class Thread;
class LeakProfiler : public AllStatic {
- friend class ClassUnloadTypeSet;
- friend class EmitEventOperation;
- friend class ObjectSampleCheckpoint;
- friend class StartOperation;
- friend class StopOperation;
- friend class TypeSet;
- friend class WriteObjectSampleStacktrace;
-
- private:
- static ObjectSampler* _object_sampler;
-
- static void set_object_sampler(ObjectSampler* object_sampler);
- static ObjectSampler* object_sampler();
-
- static void suspend();
- static void resume();
- static bool is_suspended();
-
public:
! static bool start(jint sample_count);
static bool stop();
- static void emit_events(jlong cutoff_ticks, bool emit_all);
static bool is_running();
static void sample(HeapWord* object, size_t size, JavaThread* thread);
// Called by GC
static void oops_do(BoolObjectClosure* is_alive, OopClosure* f);
};
--- 26,44 ----
#define SHARE_VM_JFR_LEAKPROFILER_LEAKPROFILER_HPP
#include "memory/allocation.hpp"
class BoolObjectClosure;
class OopClosure;
class LeakProfiler : public AllStatic {
public:
! static bool start(int sample_count);
static bool stop();
static bool is_running();
+ static void emit_events(int64_t cutoff_ticks, bool emit_all);
static void sample(HeapWord* object, size_t size, JavaThread* thread);
// Called by GC
static void oops_do(BoolObjectClosure* is_alive, OopClosure* f);
};
< prev index next >