blob: c2eb1044c7ba44b72dcd61d56050a5dcbf5570ff [file] [log] [blame]
# Copyright (C) 2020 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
service carwatchdogd /system/bin/carwatchdogd
class core
user system
group system readproc
disabled
on early-init && property:ro.build.type=userdebug
# Below intervals are in seconds
setprop ro.carwatchdog.boottime_collection_interval 1
setprop ro.carwatchdog.periodic_collection_interval 10
on early-init && property:ro.build.type=eng
# Below intervals are in seconds
setprop ro.carwatchdog.boottime_collection_interval 1
setprop ro.carwatchdog.periodic_collection_interval 10
on early-init && property:ro.build.type=user
# Below intervals are in seconds
setprop ro.carwatchdog.boottime_collection_interval 20
setprop ro.carwatchdog.periodic_collection_interval 60
on early-init
# Number of top stats per category
setprop ro.carwatchdog.top_n_stats_per_category 10
# Number of top stats per sub-category
setprop ro.carwatchdog.top_n_stats_per_subcategory 5
# Cache size for the periodically collected records
setprop ro.carwatchdog.periodic_collection_buffer_size 180
# Start the service only after initializing the properties.
start carwatchdogd