Lines Matching refs:profile
301 for (const auto& profile : profiles_) { in ExecuteForProcess() local
302 if (!profile->ExecuteForProcess(uid, pid)) { in ExecuteForProcess()
310 for (const auto& profile : profiles_) { in ExecuteForTask() local
311 profile->ExecuteForTask(tid); in ExecuteForTask()
317 for (const auto& profile : profiles_) { in EnableResourceCaching() local
318 profile->EnableResourceCaching(); in EnableResourceCaching()
323 for (const auto& profile : profiles_) { in DropResourceCaching() local
324 profile->DropResourceCaching(); in DropResourceCaching()
328 void TaskProfile::MoveTo(TaskProfile* profile) { in MoveTo() argument
329 profile->elements_ = std::move(elements_); in MoveTo()
330 profile->res_cached_ = res_cached_; in MoveTo()
460 auto profile = std::make_shared<TaskProfile>(); in Load() local
472 profile->Add(std::make_unique<SetCgroupAction>(controller, path)); in Load()
483 profile->Add(std::make_unique<SetTimerSlackAction>(slack)); in Load()
493 profile->Add( in Load()
508 profile->Add(std::make_unique<SetClampsAction>(boost, clamp)); in Load()
521 profile->Add(std::make_unique<WriteFileAction>(attr_filepath, attr_value, in Load()
536 profiles_[profile_name] = profile; in Load()
540 profile->MoveTo(iter->second.get()); in Load()
541 profile.reset(); in Load()
570 auto profile = std::make_shared<TaskProfile>(); in Load() local
571 profile->Add(std::make_unique<ApplyProfileAction>(profiles)); in Load()
572 profiles_[aggregateprofile_name] = profile; in Load()
600 TaskProfile* profile = GetProfile(name); in SetProcessProfiles() local
601 if (profile != nullptr) { in SetProcessProfiles()
602 if (!profile->ExecuteForProcess(uid, pid)) { in SetProcessProfiles()
615 TaskProfile* profile = GetProfile(name); in SetTaskProfiles() local
616 if (profile != nullptr) { in SetTaskProfiles()
618 profile->EnableResourceCaching(); in SetTaskProfiles()
620 if (!profile->ExecuteForTask(tid)) { in SetTaskProfiles()