profileTask<T> function
Implementation
Future<T> profileTask<T>(Future<T> Function() task) async {
var time = Date.now.inMilliseconds;
$logDebug("Started task", "profile", T.typeName);
var result = await task();
$logDebug("Finished task in ${Date.now.inMilliseconds - time}ms.", "profile",
T.typeName);
return result;
}