All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.gridkit.jvmtool.codec.stacktrace.ThreadSnapshotExpander Maven / Gradle / Ivy

There is a newer version: 0.23
Show newest version
package org.gridkit.jvmtool.codec.stacktrace;

import org.gridkit.jvmtool.event.Event;
import org.gridkit.jvmtool.event.EventMorpher;

public class ThreadSnapshotExpander implements EventMorpher {

    private ThreadSnapshotEventPojo pojo = new ThreadSnapshotEventPojo();

    @Override
    public Event morph(Event event) {
        if (event instanceof ThreadTraceEvent && !(event instanceof ThreadSnapshotEvent)) {
            pojo.loadFromRawEvent((ThreadTraceEvent) event);
            return pojo;
        }
        else {
            return event;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy