소스 검색

add a few more metrics to debug

Blake Blackshear 5 년 전
부모
커밋
088bd18adb
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      detect_objects.py

+ 5 - 0
detect_objects.py

@@ -194,6 +194,11 @@ def main():
             'inference_speed': round(tflite_process.avg_inference_speed.value*1000, 2)
         }
 
+        rc = plasma_process.poll()
+        stats['plasma_store_rc'] = rc
+
+        stats['tracked_objects_queue'] = tracked_objects_queue.qsize()
+
         return jsonify(stats)
 
     @app.route('/<camera_name>/<label>/best.jpg')