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 TypeFieldDescriptionstatic LongAdderstatic BlockingQueue<Long> static AtomicBooleanstatic intstatic BlockingQueue<Long> static IpcLatencyMonitorstatic longstatic BlockingQueue<Long> static BlockingQueue<Long> static booleanstatic BlockingQueue<Long> static BlockingQueue<Long> static BlockingQueue<Long> static int -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcallTimes(long nanoTime) Record cross-logic-server call time elapsed since the given nano time.static voidhandleTimes(long nanoTime) Record request handling time elapsed since the given nano time.static voidofFutureGetTimes(long nanoTime) Record future get time elapsed since the given nano time.static voidofFutureTimes(long nanoTime) Record future creation time elapsed since the given nano time.static voidrequestOnFragmentTimes(long nanoTime) Record Aeron fragment receive time elapsed since the given nano time.static voidrequestSbeTimes(long nanoTime) Record SBE request encoding time elapsed since the given nano time.static voidreset()Reset all collected timing data.static voidresponseSbeTimes(long nanoTime) Record SBE response encoding time elapsed since the given nano time.static StringtoString(String title, BlockingQueue<Long> times) Format timing data as a human-readable statistics panel.
-
Field Details
-
nanoTimeStart
public static long nanoTimeStart -
devEnterprise
-
requestOnFragmentTimes
-
handleTimes
-
callTimes
-
ofFutureTimes
-
ofFutureGetTimes
-
requestSbeTimes
-
responseSbeTimes
-
avgMicrosTime
-
print
public static boolean print -
monitor
-
userResponseMessageOnFragmentInc
public static int userResponseMessageOnFragmentInc -
externalId
public static int externalId
-
-
Method Details
-
requestSbeTimes
public static void requestSbeTimes(long nanoTime) Record SBE request encoding time elapsed since the given nano time.- Parameters:
nanoTime- the starting nano time
-
responseSbeTimes
public static void responseSbeTimes(long nanoTime) Record SBE response encoding time elapsed since the given nano time.- Parameters:
nanoTime- the starting nano time
-
ofFutureTimes
public static void ofFutureTimes(long nanoTime) Record future creation time elapsed since the given nano time.- Parameters:
nanoTime- the starting nano time
-
ofFutureGetTimes
public static void ofFutureGetTimes(long nanoTime) Record future get time elapsed since the given nano time.- Parameters:
nanoTime- the starting nano time
-
requestOnFragmentTimes
public static void requestOnFragmentTimes(long nanoTime) Record Aeron fragment receive time elapsed since the given nano time.- Parameters:
nanoTime- the starting nano time
-
handleTimes
public static void handleTimes(long nanoTime) Record request handling time elapsed since the given nano time.- Parameters:
nanoTime- the starting nano time
-
callTimes
public static void callTimes(long nanoTime) Record cross-logic-server call time elapsed since the given nano time.- Parameters:
nanoTime- the starting nano time
-
reset
public static 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
-