blob: 836b67f25a74296b7265b09b00cb19afe99b7380 [file] [log] [blame] [edit]
# Copyright 2020 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description "Chromium OS cryptohome D-Bus performance test service."
author "chromium-os-dev@chromium.org"
start on starting cryptohomed
stop on stopping cryptohomed
oom score -100
env RESULT_FOLDER_PATH="/tmp"
script
execution_time() {
local start_time=$(date +%s%N)
"$@" >/dev/null 2>/dev/null
echo $((`date +%s%N` - $start_time))
}
execution_time minijail0 -u chronos -g chronos \
/usr/bin/gdbus wait --system org.chromium.UserDataAuth \
> $RESULT_FOLDER_PATH/userdataauth_dbus_time
end script