tweak: record time for permission scans

This commit is contained in:
KernelDeimos 2024-07-23 19:40:44 -04:00 committed by Eric Dubé
parent cca19ad495
commit 580fbdb113

View File

@ -195,13 +195,19 @@ class PermissionService extends BaseService {
permission_options = [permission_options];
}
const start_ts = Date.now();
await require('../../structured/sequence/scan-permission')
.call(this, {
actor,
permission_options,
reading,
});
const end_ts = Date.now();
reading.push({
$: 'time',
value: end_ts - start_ts,
});
return reading;
}