forked from quickshell/quickshell
core/log: add custom log encoder for smaller log storage
Will be used to store more detailed logs in the future without using as much disk space.
This commit is contained in:
parent
8364e94d26
commit
bdbf5b9af9
9 changed files with 980 additions and 87 deletions
27
src/core/test/ringbuf.hpp
Normal file
27
src/core/test/ringbuf.hpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
#pragma once
|
||||
|
||||
#include <qobject.h>
|
||||
#include <qtclasshelpermacros.h>
|
||||
#include <qtmetamacros.h>
|
||||
#include <qtypes.h>
|
||||
|
||||
class TestObject {
|
||||
public:
|
||||
explicit TestObject(quint32* count);
|
||||
~TestObject();
|
||||
Q_DISABLE_COPY_MOVE(TestObject);
|
||||
|
||||
private:
|
||||
quint32* count;
|
||||
};
|
||||
|
||||
class TestRingBuffer: public QObject {
|
||||
Q_OBJECT;
|
||||
|
||||
private slots:
|
||||
static void fill();
|
||||
static void clearPartial();
|
||||
static void move();
|
||||
|
||||
static void hashLookup();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue