feat(telemetry): instrument inference duration and frame age

This commit is contained in:
2021-12-02 09:16:50 +01:00
parent 85fe69dcaa
commit bb99d3b7c9
450 changed files with 201257 additions and 2 deletions

View File

@ -1,8 +1,10 @@
package main
import (
"context"
"flag"
"github.com/cyrilix/robocar-base/cli"
"github.com/cyrilix/robocar-steering-tflite-edgetpu/pkg/metrics"
"github.com/cyrilix/robocar-steering-tflite-edgetpu/pkg/steering"
"go.uber.org/zap"
"log"
@ -59,6 +61,9 @@ func main() {
}()
zap.ReplaceGlobals(lgr)
cleanup := metrics.Init(context.Background())
defer cleanup()
if modelPath == "" {
zap.L().Error("model path is mandatory")
flag.PrintDefaults()