Module jfr_recorder

heshanp/jfr_recorder

0.2.0
JFR Recorder

Helper package for Ballerina to create jfr recordings.

Copy
import ballerina/lang.runtime;
import heshanp/jfr_recorder;

public function main() {
    jfr_recorder:continuouslyRecordJfr("jfr_records", [], 10);
    int[] numbers = [];
    while numbers.length() < int:MAX_VALUE {
        numbers.push(numbers.length());
        if numbers.length() % 1000000 == 0 {
            runtime:sleep(10);
        }
    }
}

Native image

When used with native image (--graalvm) include corresponding graalvm build options

Copy
[build-options]
graalvmBuildOptions = "--enable-monitoring=jfr,jvmstat"

Import

import heshanp/jfr_recorder;Copy

Other versions

0.2.0

0.1.0

Metadata

Released date: 5 days ago

Version: 0.2.0


Compatibility

Platform: java21

Ballerina version: 2201.12.8

GraalVM compatible: Yes


Pull count

Total: 3

Current verison: 2


Weekly downloads