mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-24 01:06:59 +00:00
Remove profiling logs.
This commit is contained in:
parent
53a3d0038c
commit
2c461b9df3
@ -15,7 +15,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "logs.h"
|
||||
|
||||
#include <QFile>
|
||||
#include <QDebug>
|
||||
#include <rlottie.h>
|
||||
#include <crl/crl_async.h>
|
||||
#include <crl/crl_on_main.h>
|
||||
@ -59,7 +58,7 @@ std::string UnpackGzip(const QByteArray &bytes) {
|
||||
|
||||
std::optional<Error> ContentError(const QByteArray &content) {
|
||||
if (content.size() > kMaxFileSize) {
|
||||
qWarning() << "Lottie Error: Too large file: " << content.size();
|
||||
LOG(("Lottie Error: Too large file: %1").arg(content.size()));
|
||||
return Error::ParseFailed;
|
||||
}
|
||||
return std::nullopt;
|
||||
@ -123,7 +122,7 @@ std::unique_ptr<rlottie::Animation> CreateFromContent(
|
||||
|
||||
auto result = rlottie::Animation::loadFromData(string, std::string());
|
||||
if (!result) {
|
||||
qWarning() << "Lottie Error: Parse failed.";
|
||||
LOG(("Lottie Error: Parse failed."));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
@ -10,7 +10,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "lottie/lottie_frame_renderer.h"
|
||||
#include "ffmpeg/ffmpeg_utility.h"
|
||||
#include "base/bytes.h"
|
||||
#include "logs.h"
|
||||
|
||||
#include <QDataStream>
|
||||
#include <private/qdrawhelper_p.h>
|
||||
@ -546,16 +545,12 @@ void Cache::appendFrame(
|
||||
prepareBuffers();
|
||||
}
|
||||
Assert(frame.size() == _size);
|
||||
const auto now = crl::profile();
|
||||
Encode(_uncompressed, frame, _encode.cache, _encode.context);
|
||||
const auto enc = crl::profile();
|
||||
CompressAndSwapFrame(
|
||||
_encode.compressBuffer,
|
||||
(index != 0) ? &_encode.xorCompressBuffer : nullptr,
|
||||
_uncompressed,
|
||||
_previous);
|
||||
_encode.compress += crl::profile() - enc;
|
||||
_encode.encode += enc - now;
|
||||
const auto compressed = _encode.compressBuffer;
|
||||
const auto nowSize = (_data.isEmpty() ? headerSize() : _data.size())
|
||||
+ _encode.totalSize;
|
||||
@ -592,9 +587,6 @@ void Cache::finalizeEncoding() {
|
||||
}
|
||||
if (_data.size() <= kMaxCacheSize) {
|
||||
_put(QByteArray(_data));
|
||||
LOG(("SIZE: %1 (%2x%3, %4 frames, %5 encode, %6 compress)").arg(_data.size()).arg(_size.width()).arg(_size.height()).arg(_framesCount).arg(_encode.encode / float64(_encode.compressedFrames.size())).arg(_encode.compress / float64(_encode.compressedFrames.size())));
|
||||
} else {
|
||||
LOG(("WARNING: %1 (%2x%3, %4 frames, %5 encode, %6 compress)").arg(_data.size()).arg(_size.width()).arg(_size.height()).arg(_framesCount).arg(_encode.encode / float64(_encode.compressedFrames.size())).arg(_encode.compress / float64(_encode.compressedFrames.size())));
|
||||
}
|
||||
_encode = EncodeFields();
|
||||
}
|
||||
|
@ -95,8 +95,6 @@ private:
|
||||
QImage cache;
|
||||
FFmpeg::SwscalePointer context;
|
||||
int totalSize = 0;
|
||||
crl::profile_time encode = 0;
|
||||
crl::profile_time compress = 0;
|
||||
};
|
||||
int headerSize() const;
|
||||
void prepareBuffers();
|
||||
|
@ -10,7 +10,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "lottie/lottie_player.h"
|
||||
#include "lottie/lottie_animation.h"
|
||||
#include "lottie/lottie_cache.h"
|
||||
#include "logs.h"
|
||||
#include "rlottie.h"
|
||||
|
||||
#include <range/v3/algorithm/find.hpp>
|
||||
|
Loading…
Reference in New Issue
Block a user