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;
}
Aggregations