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

Issue 232053002: Android: Fix default filename for kTraceStartup file (Closed)

Created:
6 years, 8 months ago by no sievers
Modified:
6 years, 8 months ago
Reviewers:
Yaron, Xianzhu, piman
CC:
chromium-reviews, jam, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org, darin-cc_chromium.org, klundberg+watch_chromium.org
Visibility:
Public.

Description

Android: Fix default filename for kTraceStartup file Putting chrometrace.log in the current working directory is not useful on Android. Generate a filepath on the sdcard instead the same way we do it for intent triggered tracing. R=piman@chromium.org, wangxianzhu@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263153

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : stay backwards compatible #

Patch Set 4 : remove accidentally added content_startup_flags.cc #

Patch Set 5 : #

Patch Set 6 : rebase #

Patch Set 7 : rebase again #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -37 lines) Patch
M build/android/adb_profile_chrome.py View 1 2 3 4 5 2 chunks +9 lines, -10 lines 0 comments Download
M content/browser/android/tracing_controller_android.h View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/android/tracing_controller_android.cc View 1 2 2 chunks +17 lines, -7 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 4 chunks +10 lines, -1 line 1 comment Download
M content/public/android/java/src/org/chromium/content/browser/TracingControllerAndroid.java View 1 2 5 chunks +27 lines, -16 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
no sievers
ptal
6 years, 8 months ago (2014-04-09 21:34:21 UTC) #1
Xianzhu
I think it will cause adb_profile_chrome.py to be incompatible with older versions of Chrome, so ...
6 years, 8 months ago (2014-04-09 21:50:17 UTC) #2
no sievers
On 2014/04/09 21:50:17, Xianzhu wrote: > I think it will cause adb_profile_chrome.py to be incompatible ...
6 years, 8 months ago (2014-04-09 22:34:51 UTC) #3
Xianzhu
lgtm
6 years, 8 months ago (2014-04-09 23:00:23 UTC) #4
no sievers
On 2014/04/09 23:00:23, Xianzhu wrote: > lgtm +piman for browser_main_loop.cc
6 years, 8 months ago (2014-04-09 23:04:15 UTC) #5
piman
why not simply pass --trace--startup-file ?
6 years, 8 months ago (2014-04-09 23:07:15 UTC) #6
no sievers
On 2014/04/09 23:07:15, piman wrote: > why not simply pass --trace--startup-file ? --trace-startup-file can still ...
6 years, 8 months ago (2014-04-09 23:13:46 UTC) #7
piman
On Wed, Apr 9, 2014 at 4:13 PM, <sievers@chromium.org> wrote: > On 2014/04/09 23:07:15, piman ...
6 years, 8 months ago (2014-04-09 23:49:54 UTC) #8
piman
lgtm (lgtm from the tool)
6 years, 8 months ago (2014-04-09 23:54:28 UTC) #9
no sievers
On 2014/04/09 23:49:54, piman wrote: > On Wed, Apr 9, 2014 at 4:13 PM, <mailto:sievers@chromium.org> ...
6 years, 8 months ago (2014-04-10 00:11:56 UTC) #10
no sievers
On 2014/04/10 00:11:56, sievers wrote: > On 2014/04/09 23:49:54, piman wrote: > > On Wed, ...
6 years, 8 months ago (2014-04-10 00:32:59 UTC) #11
no sievers
Committed patchset #7 manually as r263153 (tree was closed).
6 years, 8 months ago (2014-04-11 01:28:57 UTC) #12
piman
https://codereview.chromium.org/232053002/diff/110001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/232053002/diff/110001/content/browser/browser_main_loop.cc#newcode258 content/browser/browser_main_loop.cc:258: LOG(INFO) << "Completed startup tracing to " << trace_file.value(); ...
6 years, 8 months ago (2014-04-11 07:45:19 UTC) #13
no sievers
6 years, 8 months ago (2014-04-11 16:02:35 UTC) #14
Message was sent while issue was closed.
On 2014/04/11 07:45:19, piman wrote:
>
https://codereview.chromium.org/232053002/diff/110001/content/browser/browser...
> File content/browser/browser_main_loop.cc (right):
> 
>
https://codereview.chromium.org/232053002/diff/110001/content/browser/browser...
> content/browser/browser_main_loop.cc:258: LOG(INFO) << "Completed startup
> tracing to " << trace_file.value();
> Hmm, I'm getting presubmit issues in a patch that touches this file because of
> this line.
> Did this land ignoring presubmit checks?
> 
> See
>
http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/bu...

My bad. Although the check is silly in this case because i certainly doesn't
spam the log.
I'll try and change it to VLOG() for now.

Powered by Google App Engine
This is Rietveld 408576698