Merge lp:~aacid/ubuntu-ui-toolkit/env_var_disable_performance_monitor_warning_count into lp:ubuntu-ui-toolkit/staging

Proposed by Albert Astals Cid
Status: Merged
Approved by: Zsombor Egri
Approved revision: 2000
Merged at revision: 2000
Proposed branch: lp:~aacid/ubuntu-ui-toolkit/env_var_disable_performance_monitor_warning_count
Merge into: lp:ubuntu-ui-toolkit/staging
Prerequisite: lp:~aacid/ubuntu-ui-toolkit/performance_monitor_env_vars
Diff against target: 21 lines (+2/-2)
1 file modified
src/Ubuntu/Components/plugin/ucperformancemonitor.cpp (+2/-2)
To merge this branch: bzr merge lp:~aacid/ubuntu-ui-toolkit/env_var_disable_performance_monitor_warning_count
Reviewer Review Type Date Requested Status
ubuntu-sdk-build-bot continuous-integration Approve
Zsombor Egri Approve
Albert Astals Cid Pending
Review via email: mp+297085@code.launchpad.net

This proposal supersedes a proposal from 2016-06-09.

Commit message

Using -1 as PERFORMANCE_MONITOR_WARNING_COUNT_THRESHOLD envvar disables the warning count threshold

To post a comment you must log in.
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Zsombor Egri (zsombi) wrote :

Feels right, the failure is unrelated.

review: Approve
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Ubuntu/Components/plugin/ucperformancemonitor.cpp'
2--- src/Ubuntu/Components/plugin/ucperformancemonitor.cpp 2016-06-10 16:09:39 +0000
3+++ src/Ubuntu/Components/plugin/ucperformancemonitor.cpp 2016-06-10 16:09:40 +0000
4@@ -71,7 +71,7 @@
5
6 void UCPerformanceMonitor::onApplicationStateChanged(Qt::ApplicationState state)
7 {
8- if (m_warningCount >= warningCountThreshold) {
9+ if (m_warningCount >= warningCountThreshold && warningCountThreshold != -1) {
10 // do not monitor performance if the warning count threshold was reached
11 return;
12 }
13@@ -142,7 +142,7 @@
14 m_framesAboveThreshold = 0;
15 }
16
17- if (m_warningCount >= warningCountThreshold) {
18+ if (m_warningCount >= warningCountThreshold && warningCountThreshold != -1) {
19 qCWarning(ucPerformance, "Too many warnings were given. Performance monitoring stops.");
20 connectToWindow(NULL);
21 }

Subscribers

People subscribed via source and target branches