Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(412)

Issue 163183003: [Telemetry] Small fixes to power monitoring (Closed)

Created:
6 years, 10 months ago by jeremy
Modified:
6 years, 10 months ago
Reviewers:
tonyg, marja
CC:
chromium-reviews, chrome-speed-team+watch_google.com, telemetry+watch_chromium.org
Visibility:
Public.

Description

[Telemetry] Small fixes to power monitoring * Fix FD leak when reading output file. * Update OS X version check. BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251059

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M tools/telemetry/telemetry/core/platform/mac_platform_backend.py View 1 chunk +2 lines, -1 line 1 comment Download
M tools/telemetry/telemetry/core/platform/mac_platform_backend_unittest.py View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
jeremy
6 years, 10 months ago (2014-02-13 13:53:46 UTC) #1
marja
lgtm
6 years, 10 months ago (2014-02-13 13:55:43 UTC) #2
jeremy
The CQ bit was checked by jeremy@chromium.org
6 years, 10 months ago (2014-02-13 13:58:25 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/163183003/1
6 years, 10 months ago (2014-02-13 13:58:33 UTC) #4
tonyg
lgtm https://codereview.chromium.org/163183003/diff/1/tools/telemetry/telemetry/core/platform/mac_platform_backend.py File tools/telemetry/telemetry/core/platform/mac_platform_backend.py (left): https://codereview.chromium.org/163183003/diff/1/tools/telemetry/telemetry/core/platform/mac_platform_backend.py#oldcode83 tools/telemetry/telemetry/core/platform/mac_platform_backend.py:83: return open(self._output_filename, 'rb').read() Just for my knowledge, does ...
6 years, 10 months ago (2014-02-13 15:30:37 UTC) #5
commit-bot: I haz the power
Change committed as 251059
6 years, 10 months ago (2014-02-13 16:37:13 UTC) #6
jeremy
6 years, 10 months ago (2014-02-16 12:48:45 UTC) #7
Message was sent while issue was closed.
On 2014/02/13 15:30:37, tonyg wrote:
> lgtm
> 
>
https://codereview.chromium.org/163183003/diff/1/tools/telemetry/telemetry/co...
> File tools/telemetry/telemetry/core/platform/mac_platform_backend.py (left):
> 
>
https://codereview.chromium.org/163183003/diff/1/tools/telemetry/telemetry/co...
> tools/telemetry/telemetry/core/platform/mac_platform_backend.py:83: return
> open(self._output_filename, 'rb').read()
> Just for my knowledge, does this really leak? Or just delay collection of the
fd
> until gc runs?
> 
> I use this pattern a lot and like the brevity, but will avoid it if it really
> leaks.

You're right, this is not a leak - gc should close the FD...

Powered by Google App Engine
This is Rietveld 408576698