Fixed issues with X11 focus, improved Direct3D telemetry.
This commit is contained in:
@@ -380,12 +380,19 @@ def normalized_error_message(message: str) -> str:
|
||||
|
||||
|
||||
def _resource_usage() -> dict[str, object]:
|
||||
return _environment_resource_usage(
|
||||
"""Report launcher-lifetime CPU time and peak RSS, excluding the game."""
|
||||
|
||||
snapshot = _environment_resource_usage(
|
||||
get_usage=resource.getrusage,
|
||||
usage_target=resource.RUSAGE_SELF,
|
||||
platform_name=sys.platform,
|
||||
is_finite=math.isfinite,
|
||||
)
|
||||
if snapshot:
|
||||
# Keep the existing numeric fields for telemetry consumers, but make
|
||||
# their scope explicit even when attached to a game_exited event.
|
||||
snapshot["resource_usage_scope"] = "launcher_process"
|
||||
return snapshot
|
||||
|
||||
|
||||
def error_fingerprint(
|
||||
|
||||
Reference in New Issue
Block a user