use of com.insightfullogic.honest_profiler.core.collector.lean.LeanLogCollector in project honest-profiler by jvm-profiling-tools.
the class InitializeProfileTask method monitor.
/**
* Returns a {@link ProfileContext} which monitors {@link LeanProfile}s emitted by a {@link LeanLogCollector} based
* on a live log file.
* <p>
* @param fileLogSource the live log file from which the log events for constructing the {@link LeanProfile} are
* sourced
* @return a new {@link ProfileContext} for live monitoring
*/
private ProfileContext monitor(FileLogSource fileLogSource) {
ProfileContext profileContext = newProfileContext(LIVE, fileLogSource);
LeanLogCollector collector = getCollector(profileContext);
profileContext.setProfileSource(collector);
pipeFile(fileLogSource, collector, profileContext.getProfileListener());
return profileContext;
}
Aggregations