/** * Invoked before data is read from disk. * * @return The timestamp that marks the start of the operation * * @see DiskRegion#get */ public long startRead() { return DistributionStats.getStatTime(); }
this.stats = new DistributionStats(system, statId); DistributionStats.enableClockStats = system.getConfig().getEnableTimeStatistics(); poolQueue = new OverflowQueueWithDMStats(this.stats.getSerialQueueHelper()); } else { this.serialQueue = new ThrottlingMemLinkedQueueWithDMStats<>(TOTAL_SERIAL_QUEUE_BYTE_LIMIT, TOTAL_SERIAL_QUEUE_THROTTLE, SERIAL_QUEUE_SIZE_LIMIT, SERIAL_QUEUE_SIZE_THROTTLE, this.stats.getSerialQueueHelper()); poolQueue = this.serialQueue; thread -> stats.incSerialThreadStarts(), this::doSerialThread, this.stats.getSerialProcessorHelper(), threadMonitor, poolQueue); thread -> stats.incViewThreadStarts(), this::doViewThread, this.stats.getViewProcessorHelper(), threadMonitor); thread -> stats.incProcessingThreadStarts(), this::doProcessingThread, MAX_THREADS, this.stats.getNormalPoolHelper(), threadMonitor, INCOMING_QUEUE_LIMIT, this.stats.getOverflowQueueHelper()); thread -> stats.incHighPriorityThreadStarts(), this::doHighPriorityThread, MAX_THREADS, this.stats.getHighPriorityPoolHelper(), threadMonitor, INCOMING_QUEUE_LIMIT, this.stats.getHighPriorityQueueHelper()); poolQueue = new OverflowQueueWithDMStats<>(this.stats.getWaitingQueueHelper()); thread -> stats.incWaitingThreadStarts(), this::doWaitingThread,
@Override public void endReplyWait(long startNanos, long initTime) { if (enableClockStats) { stats.incLong(replyWaitTimeId, getStatTime() - startNanos); // this.replyWaitHistogram.endOp(delta); } if (initTime != 0) { long mswait = System.currentTimeMillis() - initTime; if (mswait > getReplyWaitMaxTime()) { stats.setLong(replyWaitMaxTimeId, mswait); } } stats.incInt(replyWaitsInProgressId, -1); stats.incInt(replyWaitsCompletedId, 1); Breadcrumbs.setSendSide(null); // clear any recipient breadcrumbs set by the message Breadcrumbs.setProblem(null); // clear out reply-wait errors }
this.stats.close(); try { Thread.sleep(100);
/** * Returns the current time (ns). * * @return the current time (ns) */ public long startTime() { return DistributionStats.getStatTime(); } }
/** * Returns the current time (ns). * * @return the current time (ns) */ public long startTime() { return DistributionStats.getStatTime(); }
/** * Returns the current time (ns). * * @return the current time (ns) */ public long startTime() { return DistributionStats.getStatTime(); }
/** * Returns the current time (ns). * * @return the current time (ns) */ public long startTime() { return DistributionStats.getStatTime(); }
/** * Invoked before data is removed from disk. * * @return The timestamp that marks the start of the operation * * @see DiskRegion#remove */ public long startRemove() { return DistributionStats.getStatTime(); }
/** * Returns the current time (ns). * * @return the current time (ns) */ public long startTime() { return DistributionStats.getStatTime(); }
/** * Returns the current time (ns). * * @return the current time (ns) */ public long startTime() { return DistributionStats.getStatTime(); }
@Override public long startSerialization() { return getStatTime(); }
@Override public long startUDPMsgEncryption() { return getStatTime(); }
@Override public long startMsgDeserialization() { return getStatTime(); }
@Override public long startDeserialization() { return getStatTime(); }
@Override public long startMsgSerialization() { return getStatTime(); }
@Override public long startUDPMsgDecryption() { return getStatTime(); }
@Override public long startPdxInstanceDeserialization() { return getStatTime(); }
/** returns the current nano time, if time stats are enabled */ static long getStatTime() { return DistributionStats.getStatTime(); }
public long getStatTime() { return DistributionStats.getStatTime(); }