File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -317,8 +317,22 @@ def collect(self):
317
317
conn .compute , conn .placement
318
318
)
319
319
guages += host_guages
320
+
321
+ host_time = time .perf_counter ()
322
+ host_duration = host_time - start_time
323
+ print (f"1 of 3 host flavor capacity complete for { collect_id } it took { host_duration } seconds" )
324
+
320
325
guages += get_project_usage (conn .identity , conn .placement , conn .compute )
326
+
327
+ project_time = time .perf_counter ()
328
+ project_duration = project_time - host_time
329
+ print (f"2 of 3 project usage complete for { collect_id } it took { project_duration } seconds" )
330
+
321
331
guages += get_host_usage (resource_providers , conn .placement )
332
+
333
+ host_usage_time = time .perf_counter ()
334
+ host_usage_duration = host_usage_time - project_time
335
+ print (f"3 of 3 host usage complete for { collect_id } it took { host_usage_duration } seconds" )
322
336
except Exception as e :
323
337
print (f"error { e } " )
324
338
You can’t perform that action at this time.
0 commit comments