Open mklanjsek opened 3 years ago
Here is how I measured timing in resourceviewer.go
:
now := time.Now()
for _, object := range objects {
if object == nil {
continue
}
fmt.Println("--------------Visit ", object.GetName())
if err := rv.Visit(ctx, object, handler); err != nil {
return nil, fmt.Errorf("unable to visit %s %s: %w",
object.GroupVersionKind(),
object.GetName(),
err)
}
}
fmt.Println("--------------Done ", len(handler.nodes), "in", time.Since(now))
While testing the Resource Viewer performance, I noticed big timing inconsistencies in node collection for complex graphs. For example, here is the output for default-kne-trigger custom resource that contains 62 nodes: