Search in sources :

Example 1 with LogEventPublisher

use of com.insightfullogic.honest_profiler.core.parser.LogEventPublisher in project honest-profiler by jvm-profiling-tools.

the class InitializeProfileTask method consume.

/**
 * Returns a {@link ProfileContext} which will emit {@link LeanProfile}s produced by consuming a non-live log file.
 * <p>
 * @param fileLogSource the non-live log file which will be processed
 * @return a new {@link ProfileContext} for non-live log file consumption
 */
private ProfileContext consume(FileLogSource fileLogSource) {
    ProfileContext profileContext = newProfileContext(LOG, fileLogSource);
    final LogEventListener collector = new LogEventPublisher().publishTo(getCollector(profileContext));
    pipe(fileLogSource, collector, false).run();
    return profileContext;
}
Also used : ProfileContext(com.insightfullogic.honest_profiler.ports.javafx.model.ProfileContext) LogEventListener(com.insightfullogic.honest_profiler.core.parser.LogEventListener) LogEventPublisher(com.insightfullogic.honest_profiler.core.parser.LogEventPublisher)

Aggregations

LogEventListener (com.insightfullogic.honest_profiler.core.parser.LogEventListener)1 LogEventPublisher (com.insightfullogic.honest_profiler.core.parser.LogEventPublisher)1 ProfileContext (com.insightfullogic.honest_profiler.ports.javafx.model.ProfileContext)1