< prev index next >
src/hotspot/share/prims/jvmtiEnv.cpp
Print this page
rev 49244 : [mq]: event-only
rev 49247 : [mq]: event5
*** 61,70 ****
--- 61,71 ----
#include "runtime/jniHandles.inline.hpp"
#include "runtime/osThread.hpp"
#include "runtime/reflectionUtils.hpp"
#include "runtime/signature.hpp"
#include "runtime/thread.inline.hpp"
+ #include "runtime/threadHeapSampler.hpp"
#include "runtime/threadSMR.hpp"
#include "runtime/timerTrace.hpp"
#include "runtime/vframe.hpp"
#include "runtime/vmThread.hpp"
#include "services/threadService.hpp"
*** 3628,3637 ****
--- 3629,3644 ----
JvmtiEnv::GetAvailableProcessors(jint* processor_count_ptr) {
*processor_count_ptr = os::active_processor_count();
return JVMTI_ERROR_NONE;
} /* end GetAvailableProcessors */
+ jvmtiError
+ JvmtiEnv::SetHeapSamplingRate(jint sampling_rate) {
+ ThreadHeapSampler::set_tlab_heap_sampling(sampling_rate);
+ return JVMTI_ERROR_NONE;
+ } /* end SetHeapSamplingRate */
+
//
// System Properties functions
//
// count_ptr - pre-checked for NULL
< prev index next >