1{ 2 "Profiles": [ 3 { 4 "Name": "MaxPerformance", 5 "Actions": [ 6 { 7 "Name": "WriteFile", 8 "Params": 9 { 10 "FilePath": "/proc/vendor_sched/groups/ta/set_task_group", 11 "ProcFilePath": "/proc/vendor_sched/groups/ta/set_proc_group", 12 "Value": "<pid>", 13 "LogFailures": "false" 14 } 15 } 16 ] 17 }, 18 { 19 "Name": "CameraServicePerformance", 20 "Actions": [ 21 { 22 "Name": "WriteFile", 23 "Params": 24 { 25 "FilePath": "/proc/vendor_sched/groups/cam/set_task_group", 26 "ProcFilePath": "/proc/vendor_sched/groups/cam/set_proc_group", 27 "Value": "<pid>", 28 "LogFailures": "false" 29 } 30 } 31 ] 32 }, 33 { 34 "Name": "CameraServicePower", 35 "Actions": [ 36 { 37 "Name": "WriteFile", 38 "Params": 39 { 40 "FilePath": "/proc/vendor_sched/groups/cam_power/set_task_group", 41 "ProcFilePath": "/proc/vendor_sched/groups/cam_power/set_proc_group", 42 "Value": "<pid>", 43 "LogFailures": "false" 44 } 45 } 46 ] 47 }, 48 { 49 "Name": "Dex2oatPerformance", 50 "Actions": [ 51 { 52 "Name": "WriteFile", 53 "Params": 54 { 55 "FilePath": "/proc/vendor_sched/groups/dex2oat/set_task_group", 56 "ProcFilePath": "/proc/vendor_sched/groups/dex2oat/set_proc_group", 57 "Value": "<pid>", 58 "LogFailures": "false" 59 } 60 } 61 ] 62 }, 63 { 64 "Name": "OtaPerformance", 65 "Actions": [ 66 { 67 "Name": "WriteFile", 68 "Params": 69 { 70 "FilePath": "/proc/vendor_sched/groups/ota/set_task_group", 71 "ProcFilePath": "/proc/vendor_sched/groups/ota/set_proc_group", 72 "Value": "<pid>", 73 "LogFailures": "false" 74 } 75 } 76 ] 77 }, 78 { 79 "Name": "CameraServiceHighCapacity", 80 "Actions": [ 81 { 82 "Name": "JoinCgroup", 83 "Params": 84 { 85 "Controller": "cpuset", 86 "Path": "camera-daemon-high-group" 87 } 88 } 89 ] 90 }, 91 { 92 "Name": "CameraServiceMidCapacity", 93 "Actions": [ 94 { 95 "Name": "JoinCgroup", 96 "Params": 97 { 98 "Controller": "cpuset", 99 "Path": "camera-daemon-mid-group" 100 } 101 } 102 ] 103 }, 104 { 105 "Name": "CameraServiceMidHighCapacity", 106 "Actions": [ 107 { 108 "Name": "JoinCgroup", 109 "Params": 110 { 111 "Controller": "cpuset", 112 "Path": "camera-daemon-mid-high-group" 113 } 114 } 115 ] 116 }, 117 { 118 "Name": "HighEnergySaving", 119 "Actions": [ 120 { 121 "Name": "WriteFile", 122 "Params": 123 { 124 "FilePath": "/proc/vendor_sched/groups/bg/set_task_group", 125 "ProcFilePath": "/proc/vendor_sched/groups/bg/set_proc_group", 126 "Value": "<pid>", 127 "LogFailures": "false" 128 } 129 } 130 ] 131 }, 132 { 133 "Name": "NormalPerformance", 134 "Actions": [ 135 { 136 "Name": "WriteFile", 137 "Params": 138 { 139 "FilePath": "/proc/vendor_sched/groups/sys/set_task_group", 140 "ProcFilePath": "/proc/vendor_sched/groups/sys/set_proc_group", 141 "Value": "<pid>", 142 "LogFailures": "false" 143 } 144 } 145 ] 146 }, 147 { 148 "Name": "HighPerformance", 149 "Actions": [ 150 { 151 "Name": "WriteFile", 152 "Params": 153 { 154 "FilePath": "/proc/vendor_sched/groups/fg/set_task_group", 155 "ProcFilePath": "/proc/vendor_sched/groups/fg/set_proc_group", 156 "Value": "<pid>", 157 "LogFailures": "false" 158 } 159 } 160 ] 161 }, 162 { 163 "Name": "RealtimePerformance", 164 "Actions": [ 165 { 166 "Name": "WriteFile", 167 "Params": 168 { 169 "FilePath": "/proc/vendor_sched/groups/ta/set_task_group", 170 "ProcFilePath": "/proc/vendor_sched/groups/ta/set_proc_group", 171 "Value": "<pid>", 172 "LogFailures": "false" 173 } 174 } 175 ] 176 }, 177 { 178 "Name": "NNApiHALPerformance", 179 "Actions": [ 180 { 181 "Name": "WriteFile", 182 "Params": 183 { 184 "FilePath": "/proc/vendor_sched/groups/nnapi/set_task_group", 185 "ProcFilePath": "/proc/vendor_sched/groups/nnapi/set_proc_group", 186 "Value": "<pid>", 187 "LogFailures": "false" 188 } 189 } 190 ] 191 }, 192 { 193 "Name": "ServicePerformance", 194 "Actions": [ 195 { 196 "Name": "WriteFile", 197 "Params": 198 { 199 "FilePath": "/proc/vendor_sched/groups/sys_bg/set_task_group", 200 "ProcFilePath": "/proc/vendor_sched/groups/sys_bg/set_proc_group", 201 "Value": "<pid>", 202 "LogFailures": "false" 203 } 204 } 205 ] 206 }, 207 { 208 "Name": "SFMainPolicy", 209 "Actions": [ 210 { 211 "Name": "JoinCgroup", 212 "Params": 213 { 214 "Controller": "cpuset", 215 "Path": "top-app" 216 } 217 }, 218 { 219 "Name": "WriteFile", 220 "Params": 221 { 222 "FilePath": "/proc/vendor_sched/groups/sf/set_task_group", 223 "ProcFilePath": "/proc/vendor_sched/groups/sf/set_proc_group", 224 "Value": "<pid>", 225 "LogFailures": "false" 226 } 227 } 228 ] 229 }, 230 { 231 "Name": "SFRenderEnginePolicy", 232 "Actions": [ 233 { 234 "Name": "JoinCgroup", 235 "Params": 236 { 237 "Controller": "cpuset", 238 "Path": "top-app" 239 } 240 }, 241 { 242 "Name": "WriteFile", 243 "Params": 244 { 245 "FilePath": "/proc/vendor_sched/groups/rt/set_task_group", 246 "ProcFilePath": "/proc/vendor_sched/groups/rt/set_proc_group", 247 "Value": "<pid>", 248 "LogFailures": "false" 249 } 250 } 251 ] 252 }, 253 { 254 "Name": "ResetUclampGrp", 255 "Actions": [ 256 { 257 "Name": "WriteFile", 258 "Params": 259 { 260 "FilePath": "/proc/vendor_sched/uclamp_fork_reset_set", 261 "Value": "<pid>", 262 "LogFailures": "false" 263 } 264 } 265 ] 266 }, 267 { 268 "Name": "NoResetUclampGrp", 269 "Actions": [ 270 { 271 "Name": "WriteFile", 272 "Params": 273 { 274 "FilePath": "/proc/vendor_sched/uclamp_fork_reset_clear", 275 "Value": "<pid>", 276 "LogFailures": "false" 277 } 278 } 279 ] 280 } 281 ], 282 283 "AggregateProfiles": [ 284 { 285 "Name": "Dex2OatBootComplete", 286 "Profiles": [ "Dex2oatPerformance", "ProcessCapacityNormal", "LowIoPriority", "TimerSlackHigh" ] 287 }, 288 { 289 "Name": "OtaProfiles", 290 "Profiles": [ "OtaPerformance", "ProcessCapacityNormal", "LowIoPriority", "TimerSlackHigh" ] 291 } 292 ] 293} 294