blob: 99db568cf85c148627d511d8009b61539d40f203 [file]
package org.mozilla.javascript;
import jdk.jfr.Category;
import jdk.jfr.Description;
import jdk.jfr.Enabled;
import jdk.jfr.Label;
import jdk.jfr.Name;
import jdk.jfr.Registered;
@Category({"Mozilla", "Rhino"})
@Name("org.mozilla.javascript.TestEvent")
@Description("Test event")
@Registered(true)
@Enabled(true)
public class TestEvent extends JFREmitter.RhinoEvent {
@Label("Source Name")
public String name;
public TestEvent() {
super();
begin();
}
@Override
void fillAndSubmit(Object... data) {
if (this.shouldCommit()) {
name = (String) data[0];
this.commit();
}
}
}