INNER CODE UNIT · Java

doInitRecorderMaintainer

LinShunKang/MyPerf4J · MyPerf4J-ASM/src/main/java/cn/myperf4j/asm/ASMBootstrap.java:26

    public AbstractRecorderMaintainer doInitRecorderMaintainer() {
        final RecorderConfig recorderConf = ProfilingConfig.recorderConfig();
        final ASMRecorderMaintainer maintainer = ASMRecorderMaintainer.getInstance();
        if (maintainer.initial(methodMetricsExporter, recorderConf.accurateMode(), recorderConf.backupCount())) {
            return maintainer;
        }
        return null;
    }

    @Override
    public boolean initOther() {
        return initProfilerAspect();
    }

    private boolean initProfilerAspect() {
        try {
            ProfilingAspect.setRecorderMaintainer((ASMRecorderMaintainer) maintainer);
            ProfilingAspect.setRunning(true);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…