Skip to content

Commit 6b85703

Browse files
committed
Changed performance analyzer to focus only on barcode analyzer performances (not the whole app, just the AI barcode analyzer)
1 parent 2ae92e8 commit 6b85703

File tree

1 file changed

+2
-1
lines changed
  • AI_MultiBarcodes_Capture/src/main/java/com/zebra/ai_multibarcodes_capture/barcodedecoder

1 file changed

+2
-1
lines changed

AI_MultiBarcodes_Capture/src/main/java/com/zebra/ai_multibarcodes_capture/barcodedecoder/BarcodeAnalyzer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public void analyze(@NonNull ImageProxy image) {
148148

149149
// Capture timing state for this analysis
150150
final boolean trackTiming = timingEnabled && timingCallback != null;
151-
final long startTimeNanos = trackTiming ? System.nanoTime() : 0;
151+
//long startTimeNanos = 0;
152152

153153
Future<?> future = executorService.submit(() -> {
154154
try {
@@ -183,6 +183,7 @@ public void analyze(@NonNull ImageProxy image) {
183183
imageData = ImageData.fromImageProxy(image);
184184
}
185185

186+
final long startTimeNanos = trackTiming ? System.nanoTime() : 0;
186187
barcodeDecoder.process(imageData)
187188
.thenAccept(result -> {
188189
// Calculate timing when entering thenAccept (before isStopped check)

0 commit comments

Comments
 (0)