Class DevKit
java.lang.Object
com.iohao.net.framework.core.kit.DevKit
Development and performance monitoring utilities for measuring IPC latency and request
processing times. Internal use only.
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-11-06
-
Field Summary
FieldsModifier and TypeFieldDescriptionintlongbooleanint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcallTimes(long nanoTime) Record cross-logic-server call time elapsed since the given nano time.voidhandleTimes(long nanoTime) Record request handling time elapsed since the given nano time.voidofFutureGetTimes(long nanoTime) Record future get time elapsed since the given nano time.voidofFutureTimes(long nanoTime) Record future creation time elapsed since the given nano time.voidrequestOnFragmentTimes(long nanoTime) Record Aeron fragment receive time elapsed since the given nano time.voidrequestSbeTimes(long nanoTime) Record SBE request encoding time elapsed since the given nano time.voidreset()Reset all collected timing data.voidresponseSbeTimes(long nanoTime) Record SBE response encoding time elapsed since the given nano time.toString(String title, BlockingQueue<Long> times) Format timing data as a human-readable statistics panel.
-
Field Details
-
nanoTimeStart
public long nanoTimeStart -
devEnterprise
-
requestOnFragmentTimes
-
handleTimes
-
callTimes
-
ofFutureTimes
-
ofFutureGetTimes
-
requestSbeTimes
-
responseSbeTimes
-
avgMicrosTime
-
print
public boolean print -
monitor
-
userResponseMessageOnFragmentInc
public int userResponseMessageOnFragmentInc -
externalId
public int externalId
-
-
Constructor Details
-
DevKit
public DevKit()
-
-
Method Details
-
requestSbeTimes
public void requestSbeTimes(long nanoTime) Record SBE request encoding time elapsed since the given nano time.- Parameters:
nanoTime- the starting nano time
-
responseSbeTimes
public void responseSbeTimes(long nanoTime) Record SBE response encoding time elapsed since the given nano time.- Parameters:
nanoTime- the starting nano time
-
ofFutureTimes
public void ofFutureTimes(long nanoTime) Record future creation time elapsed since the given nano time.- Parameters:
nanoTime- the starting nano time
-
ofFutureGetTimes
public void ofFutureGetTimes(long nanoTime) Record future get time elapsed since the given nano time.- Parameters:
nanoTime- the starting nano time
-
requestOnFragmentTimes
public void requestOnFragmentTimes(long nanoTime) Record Aeron fragment receive time elapsed since the given nano time.- Parameters:
nanoTime- the starting nano time
-
handleTimes
public void handleTimes(long nanoTime) Record request handling time elapsed since the given nano time.- Parameters:
nanoTime- the starting nano time
-
callTimes
public void callTimes(long nanoTime) Record cross-logic-server call time elapsed since the given nano time.- Parameters:
nanoTime- the starting nano time
-
reset
public void reset()Reset all collected timing data. -
toString
Format timing data as a human-readable statistics panel.- Parameters:
title- the panel titletimes- the collected timing values in nanoseconds- Returns:
- formatted statistics string
-