Search in sources :

Example 1 with LeanLogCollector

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;
}
Also used : LeanLogCollector(com.insightfullogic.honest_profiler.core.collector.lean.LeanLogCollector) ProfileContext(com.insightfullogic.honest_profiler.ports.javafx.model.ProfileContext)

Aggregations

LeanLogCollector (com.insightfullogic.honest_profiler.core.collector.lean.LeanLogCollector)1 ProfileContext (com.insightfullogic.honest_profiler.ports.javafx.model.ProfileContext)1