MCPcopy Create free account
hub / github.com/XpuOS/xsched / SetProcessUtilization

Method SetProcessUtilization

service/common/src/client.cpp:139–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139XResult Client::SetProcessUtilization(PID pid, Utilization util)
140{
141 Json::Value request;
142 request["hint_type"] = (Json::Int)kHintTypeUtilization;
143 request["pid"] = (Json::Int)pid;
144 request["handle"] = (Json::UInt64)0;
145 request["utilization"] = (Json::Int)util;
146 return SendHint(request);
147}
148
149XResult Client::SetTimeslice(Timeslice ts_us)
150{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected