2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Add some profiling logs to lottie player.

This commit is contained in:
John Preston
2019-06-29 14:24:46 +02:00
parent 2c461b9df3
commit f6bfbbb805
7 changed files with 111 additions and 32 deletions

View File

@@ -319,6 +319,11 @@ bool DebugEnabled() {
#endif
}
QString ProfilePrefix() {
const auto now = crl::profile();
return '[' + QString::number(now / 1000., 'f', 3) + "] ";
}
void start(not_null<Core::Launcher*> launcher) {
Assert(LogsData == nullptr);