Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
1d7cb19a
Commit
1d7cb19a
authored
Jul 25, 2019
by
Carla Guillen Carias
Browse files
Small error fix
parent
2a5f0511
Changes
1
Hide whitespace changes
Inline
Side-by-side
analytics/analyzers/smucngperfanalyzer/SMUCNGPerfAnalyzer.cpp
View file @
1d7cb19a
...
...
@@ -43,7 +43,7 @@ void SMUCNGPerfAnalyzer::compute(U_Ptr unit) {
vector
<
reading_t
>
*
bufferClocks
=
nullptr
;
bufferClocks
=
_queryEngine
.
querySensor
(
inputs
[
_metricToPosition
[
SMUCSensorBase
::
CLOCKS
]]
->
getName
(),
timestamp
,
timestamp
,
bufferClocks
,
false
);
//use absolute timestamp
vector
<
reading_t
>
*
bufferClockRef
=
nullptr
;
bufferClockRef
=
_queryEngine
.
querySensor
(
inputs
[
_metricToPosition
[
SMUCSensorBase
::
CLOCKS
]]
->
getName
(),
timestamp
,
timestamp
,
bufferClockRef
,
false
);
//use absolute timestamp
bufferClockRef
=
_queryEngine
.
querySensor
(
inputs
[
_metricToPosition
[
SMUCSensorBase
::
CLOCKS
_REF
]]
->
getName
(),
timestamp
,
timestamp
,
bufferClockRef
,
false
);
//use absolute timestamp
reading_t
frequency
;
bool
wascalced
=
calculateFrequency
(
*
(
bufferClockRef
->
begin
()),
*
(
bufferClocks
->
begin
()),
MIN_FREQ_MHZ
,
MAX_FREQ_MHZ
,
frequency
);
delete
bufferClocks
;
...
...
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