Lines Matching full:cgroups
89 struct CGroups { struct
90 // Check for cgroups files. ChromeOS supports these by default. It creates
102 // UCLAMP settings for the foreground cgroups.
106 CGroups() { in CGroups() function
140 return CGroups::Get().foreground_file; in GetForegroundCgroupFile()
147 static CGroups& Get() { in Get() argument
148 static auto& groups = *new CGroups; in Get()
155 // system supports the chrome cgroups. Will block if this is the first call
158 return FeatureList::IsEnabled(kOneGroupPerRenderer) && CGroups::Get().enabled; in OneGroupPerRendererEnabled()
186 if (CGroups::Get().enabled) in CanBackgroundProcesses()
199 if (CGroups::Get().enabled) { in IsProcessBackgrounded()
217 if (CGroups::Get().enabled) { in SetProcessBackgrounded()
220 background ? CGroups::Get().background_file in SetProcessBackgrounded()
221 : CGroups::Get().GetForegroundCgroupFile(unique_token_); in SetProcessBackgrounded()
316 unique_token_ = StrCat({CGroups::Get().group_prefix_token, in InitializePriority()
319 FilePath cgroup_path = CGroups::Get().GetForegroundCgroupDir(unique_token_); in InitializePriority()
333 if (!CGroups::Get().uclamp_min.empty() && in InitializePriority()
335 CGroups::Get().uclamp_min)) { in InitializePriority()
339 if (!CGroups::Get().uclamp_min.empty() && in InitializePriority()
341 CGroups::Get().uclamp_max)) { in InitializePriority()
370 FilePath cgroup = CGroups::Get().GetForegroundCgroupDir(unique_token_); in CleanUpProcess()
380 if (!WriteFile(CGroups::Get().background_file, pidstr)) { in CleanUpProcess()
413 StartsWith(dirname, CGroups::Get().group_prefix_token)) { in CleanUpStaleProcessStates()