blob: 26f0fae2a49a70f5a7d54d854824ac4ecce6d15a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "performancemonitor.h"
namespace PerformanceMonitor {
bool State::parseArgument(const QByteArray &arg)
{
bool result = false;
if (arg == "-log-perf") {
logging = true;
valid = true;
result = true;
} else if (arg == "-no-log-perf") {
logging = false;
valid = true;
result = true;
} else if (arg == "-show-perf") {
visible = true;
valid = true;
result = true;
} else if (arg == "-hide-perf") {
visible = false;
valid = true;
result = true;
}
return result;
}
} // namespace PerformanceMonitor
|