src/share/vm/jfr/dcmd/jfrDcmds.cpp

changeset 9870
830105382dbd
parent 9858
b985cbb00e68
child 9883
02a4c08a8777
     1.1 --- a/src/share/vm/jfr/dcmd/jfrDcmds.cpp	Mon Oct 01 16:41:10 2018 +0200
     1.2 +++ b/src/share/vm/jfr/dcmd/jfrDcmds.cpp	Fri Nov 23 16:36:07 2018 +0900
     1.3 @@ -534,12 +534,12 @@
     1.4                                                                 bool heap) : DCmdWithParser(output, heap),
     1.5    _repository_path("repositorypath", "Path to repository,.e.g \\\"My Repository\\\"", "STRING", false, NULL),
     1.6    _dump_path("dumppath", "Path to dump,.e.g \\\"My Dump path\\\"", "STRING", false, NULL),
     1.7 -  _stack_depth("stackdepth", "Stack Depth", "JLONG", false, "64"),
     1.8 -  _global_buffer_count("globalbuffercount", "Number of global buffers,", "JLONG", false, "32"),
     1.9 -  _global_buffer_size("globalbuffersize", "Size of a global buffers,", "JLONG", false, "524288"),
    1.10 -  _thread_buffer_size("thread_buffer_size", "Size of a thread buffer", "JLONG", false, "8192"),
    1.11 -  _memory_size("memorysize", "Overall memory size, ", "JLONG", false, "16777216"),
    1.12 -  _max_chunk_size("maxchunksize", "Size of an individual disk chunk", "JLONG", false, "12582912"),
    1.13 +  _stack_depth("stackdepth", "Stack Depth", "JULONG", false, "64"),
    1.14 +  _global_buffer_count("globalbuffercount", "Number of global buffers,", "JULONG", false, "20"),
    1.15 +  _global_buffer_size("globalbuffersize", "Size of a global buffers,", "MEMORY SIZE", false, "512k"),
    1.16 +  _thread_buffer_size("thread_buffer_size", "Size of a thread buffer", "MEMORY SIZE", false, "8k"),
    1.17 +  _memory_size("memorysize", "Overall memory size, ", "MEMORY SIZE", false, "10m"),
    1.18 +  _max_chunk_size("maxchunksize", "Size of an individual disk chunk", "MEMORY SIZE", false, "12m"),
    1.19    _sample_threads("samplethreads", "Activate Thread sampling", "BOOLEAN", false, "true") {
    1.20    _dcmdparser.add_dcmd_option(&_repository_path);
    1.21    _dcmdparser.add_dcmd_option(&_dump_path);
    1.22 @@ -602,22 +602,22 @@
    1.23  
    1.24    jobject global_buffer_size = NULL;
    1.25    if (_global_buffer_size.is_set()) {
    1.26 -    global_buffer_size = JfrJavaSupport::new_java_lang_Long(_global_buffer_size.value(), CHECK);
    1.27 +    global_buffer_size = JfrJavaSupport::new_java_lang_Long(_global_buffer_size.value()._size, CHECK);
    1.28    }
    1.29  
    1.30    jobject thread_buffer_size = NULL;
    1.31    if (_thread_buffer_size.is_set()) {
    1.32 -    thread_buffer_size = JfrJavaSupport::new_java_lang_Long(_thread_buffer_size.value(), CHECK);
    1.33 +    thread_buffer_size = JfrJavaSupport::new_java_lang_Long(_thread_buffer_size.value()._size, CHECK);
    1.34    }
    1.35  
    1.36    jobject max_chunk_size = NULL;
    1.37    if (_max_chunk_size.is_set()) {
    1.38 -    max_chunk_size = JfrJavaSupport::new_java_lang_Long(_max_chunk_size.value(), CHECK);
    1.39 +    max_chunk_size = JfrJavaSupport::new_java_lang_Long(_max_chunk_size.value()._size, CHECK);
    1.40    }
    1.41  
    1.42    jobject memory_size = NULL;
    1.43    if (_memory_size.is_set()) {
    1.44 -    memory_size = JfrJavaSupport::new_java_lang_Long(_memory_size.value(), CHECK);
    1.45 +    memory_size = JfrJavaSupport::new_java_lang_Long(_memory_size.value()._size, CHECK);
    1.46    }
    1.47  
    1.48    jobject sample_threads = NULL;

mercurial