mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-28 01:04:41 +08:00
sleep for 1 second
This commit is contained in:
parent
4b71a64363
commit
f4676ced6f
@ -105,9 +105,10 @@ EasyMainWindow::EasyMainWindow() : Parent(), m_treeWidget(nullptr), m_graphicsVi
|
|||||||
|
|
||||||
QToolBar *fileToolBar = addToolBar(tr("File"));
|
QToolBar *fileToolBar = addToolBar(tr("File"));
|
||||||
QAction *connectAct = new QAction(tr("&Connect"), this);
|
QAction *connectAct = new QAction(tr("&Connect"), this);
|
||||||
{ QIcon icon(":/WiFi"); if (!icon.isNull()) connectAct->setIcon(icon); }
|
SET_ICON(connectAct, ":/WiFi");
|
||||||
|
|
||||||
QAction *newAct = new QAction(tr("&Capture"), this);
|
QAction *newAct = new QAction(tr("&Capture"), this);
|
||||||
|
SET_ICON(newAct, ":/Start");
|
||||||
fileToolBar->addAction(connectAct);
|
fileToolBar->addAction(connectAct);
|
||||||
fileToolBar->addAction(newAct);
|
fileToolBar->addAction(newAct);
|
||||||
|
|
||||||
|
@ -383,7 +383,7 @@ uint32_t ProfileManager::dumpBlocksToStream(profiler::OStream& _outputStream)
|
|||||||
::profiler::setEnabled(false);
|
::profiler::setEnabled(false);
|
||||||
|
|
||||||
//TODO remove it
|
//TODO remove it
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
|
||||||
// This is to make sure that no new descriptors or new threads will be
|
// This is to make sure that no new descriptors or new threads will be
|
||||||
// added until we finish sending data.
|
// added until we finish sending data.
|
||||||
guard_lock_t lock1(m_storedSpin);
|
guard_lock_t lock1(m_storedSpin);
|
||||||
|
@ -218,12 +218,12 @@ public:
|
|||||||
do {
|
do {
|
||||||
const int8_t* data = current->data;
|
const int8_t* data = current->data;
|
||||||
uint16_t i = 0;
|
uint16_t i = 0;
|
||||||
do {
|
while (i + 1 < N && *(uint16_t*)data != 0) {
|
||||||
const uint16_t size = sizeof(uint16_t) + *(uint16_t*)data;
|
const uint16_t size = sizeof(uint16_t) + *(uint16_t*)data;
|
||||||
_outputStream.write((const char*)data, size);
|
_outputStream.write((const char*)data, size);
|
||||||
data = data + size;
|
data = data + size;
|
||||||
i += size;
|
i += size;
|
||||||
} while (i + 1 < N && *(uint16_t*)data != 0);
|
}
|
||||||
current = current->prev;
|
current = current->prev;
|
||||||
} while (current != nullptr);
|
} while (current != nullptr);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user