@@ -88,7 +88,7 @@ func _ready() -> void:
8888
8989 # Get the name of the parent node name for metric
9090 var parent_name = actor .name
91- _process_time_metric_name = "beehave/ %s -%s -process_time " % [parent_name , get_instance_id ()]
91+ _process_time_metric_name = "beehave [microseconds]/process_time_ %s -%s " % [parent_name , get_instance_id ()]
9292
9393 # Register custom metric to the engine
9494 if custom_monitor :
@@ -107,7 +107,6 @@ func _physics_process(delta: float) -> void:
107107 # Start timing for metric
108108 var start_time = Time .get_ticks_usec ()
109109
110- blackboard .set_value ("delta" , delta , str (actor .get_instance_id ()))
111110 blackboard .set_value ("can_send_message" , _can_send_message )
112111
113112 if _can_send_message :
@@ -120,7 +119,7 @@ func _physics_process(delta: float) -> void:
120119 BeehaveDebuggerMessages .process_end (get_instance_id ())
121120
122121 # Check the cost for this frame and save it for metric report
123- _process_time_metric_value = ( Time .get_ticks_usec () - start_time ) / 1000.0
122+ _process_time_metric_value = Time .get_ticks_usec () - start_time
124123
125124
126125func tick () -> int :
@@ -204,7 +203,7 @@ func _exit_tree() -> void:
204203
205204
206205# Called by the engine to profile this tree
207- func _get_process_time_metric_value () -> float :
206+ func _get_process_time_metric_value () -> int :
208207 return _process_time_metric_value
209208
210209
0 commit comments