Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Telemetry
KUserFeedback
Commits
8ae5ae18
Commit
8ae5ae18
authored
Dec 18, 2016
by
Volker Krause
Browse files
Provide usage time and start count in the new format
parent
06dd0ab5
Changes
3
Hide whitespace changes
Inline
Side-by-side
analyzer/schemaentrytemplates/usageCount.json
View file @
8ae5ae18
...
...
@@ -5,10 +5,9 @@
"aggregation"
:
"numeric"
,
"elements"
:
[
{
"name"
:
"
startCount
"
,
"name"
:
"
value
"
,
"type"
:
"int"
}
]
}
]
analyzer/schemaentrytemplates/usageTime.json
View file @
8ae5ae18
...
...
@@ -5,7 +5,7 @@
"aggregation"
:
"numeric"
,
"elements"
:
[
{
"name"
:
"
usageTim
e"
,
"name"
:
"
valu
e"
,
"type"
:
"int"
}
]
...
...
provider/core/provider.cpp
View file @
8ae5ae18
...
...
@@ -179,8 +179,11 @@ QByteArray ProviderPrivate::jsonData() const
{
QJsonObject
obj
;
if
(
statisticsMode
!=
Provider
::
NoStatistics
)
{
obj
.
insert
(
QStringLiteral
(
"startCount"
),
startCount
);
obj
.
insert
(
QStringLiteral
(
"usageTime"
),
currentApplicationTime
());
QJsonObject
valueObj
;
valueObj
.
insert
(
QStringLiteral
(
"value"
),
startCount
);
obj
.
insert
(
QStringLiteral
(
"startCount"
),
valueObj
);
valueObj
.
insert
(
QStringLiteral
(
"value"
),
currentApplicationTime
());
obj
.
insert
(
QStringLiteral
(
"usageTime"
),
valueObj
);
foreach
(
auto
source
,
dataSources
)
{
if
(
statisticsMode
<
source
->
collectionMode
())
continue
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment