
com.oracle.truffle.tools.profiler.impl.CPUSamplerInstrumentProvider Maven / Gradle / Ivy
// CheckStyle: start generated
package com.oracle.truffle.tools.profiler.impl;
import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.instrumentation.TruffleInstrument.Registration;
import com.oracle.truffle.api.instrumentation.provider.TruffleInstrumentProvider;
import java.util.Collection;
import java.util.List;
@GeneratedBy(CPUSamplerInstrument.class)
@Registration(id = "cpusampler", name = "CPU Sampler", version = "0.5.0", website = "https://www.graalvm.org/tools/profiling/")
public final class CPUSamplerInstrumentProvider extends TruffleInstrumentProvider {
@Override
protected String getInstrumentClassName() {
return "com.oracle.truffle.tools.profiler.impl.CPUSamplerInstrument";
}
@Override
protected Object create() {
return new CPUSamplerInstrument();
}
@Override
protected Collection getServicesClassNames() {
return List.of("com.oracle.truffle.tools.profiler.CPUSampler");
}
@Override
protected List getInternalResourceIds() {
return List.of();
}
@Override
protected Object createInternalResource(String resourceId) {
throw new IllegalArgumentException(String.format("Unsupported internal resource id %s, supported ids are ", resourceId));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy