Skip to content

Commit a855782

Browse files
authored
Merge pull request #831 from luxonis/operation_times_docs
Added docs about measuring operation times (using depthai level trace)
2 parents 98bb318 + 4ebba13 commit a855782

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/source/tutorials/low-latency.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,28 @@ A few options to reduce bandwidth:
155155
- Encode frames (H.264, H.265, MJPEG) on-device using :ref:`VideoEncoder node <VideoEncoder>`
156156
- Reduce FPS/resolution/number of streams
157157

158+
Measuring operation times
159+
#########################
160+
161+
If user sets depthai level to `trace` (see :ref:`DepthAI debugging level`), depthai will log operation times for each node/process, as shown below.
162+
163+
.. code-block:: bash
164+
:emphasize-lines: 1,2,5,6,7,8,9,10,13
165+
166+
[SpatialDetectionNetwork(1)] [trace] SpatialDetectionNetwork syncing took '70.39142' ms.
167+
[StereoDepth(4)] [trace] Warp node took '2.2945' ms.
168+
[system] [trace] EV:0,S:0,IDS:27,IDD:10,TSS:2,TSN:601935518
169+
[system] [trace] EV:0,S:1,IDS:27,IDD:10,TSS:2,TSN:602001382
170+
[StereoDepth(4)] [trace] Stereo took '12.27392' ms.
171+
[StereoDepth(4)] [trace] 'Median+Disparity to depth' pipeline took '0.86295' ms.
172+
[StereoDepth(4)] [trace] Stereo post processing (total) took '0.931422' ms.
173+
[SpatialDetectionNetwork(1)] [trace] NeuralNetwork inference took '62.274784' ms.
174+
[StereoDepth(4)] [trace] Stereo rectification took '2.686294' ms.
175+
[MonoCamera(3)] [trace] Mono ISP took '1.726888' ms.
176+
[system] [trace] EV:0,S:0,IDS:20,IDD:25,TSS:2,TSN:616446812
177+
[system] [trace] EV:0,S:1,IDS:20,IDD:25,TSS:2,TSN:616489715
178+
[SpatialDetectionNetwork(1)] [trace] DetectionParser took '3.464118' ms.
179+
158180
Reducing latency when running NN
159181
################################
160182

0 commit comments

Comments
 (0)