Function recordAgentOSUsage