Closed Bug 774978 Opened 12 years ago Closed 12 years ago

Unable to pull profiles on Android Fennec

Categories

(Core :: Gecko Profiler, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: BenWa, Assigned: BenWa)

Details

Attachments

(2 files)

The extension fails to read the profile from NS_OS_TEMP_DIR on android fennec while it works fine when the code is patches to write to '/data/local'.
are you able to pull e.g. /data/data/org.mozilla.fennec/lib/libmozglue.so?
No:
bgirard@bulldozer:~/mozilla/kiwifox/tree$ adb pull /data/data/org.mozilla.fennec_bgirard/libmozglue.so .
remote object '/data/data/org.mozilla.fennec_bgirard/libmozglue.so' does not exist
bgirard@bulldozer:~/mozilla/kiwifox/tree$ adb pull /data/data/org.mozilla.fennec/libmozglue.so .
remote object '/data/data/org.mozilla.fennec/libmozglue.so' does not exist
Attachment #645344 - Flags: review?(mh+mozilla)
Comment on attachment 645344 [details] [diff] [review]
Restore /sdcard for now

Review of attachment 645344 [details] [diff] [review]:
-----------------------------------------------------------------

::: tools/profiler/TableTicker.cpp
@@ +454,5 @@
>      t->SetPaused(true);
>  
>      // Get file path
> +#ifdef ANDROID
> +    nsCString tmpPath = NS_LITERAL_CSTRING("/sdcard/");

Make that an nsCAutoString. I also think you can skip the assignment part, and just make /sdcard/ part of the AppendPrintf.
Attachment #645344 - Flags: review?(mh+mozilla) → review+
Carry forward r+
Assignee: nobody → bgirard
Status: NEW → ASSIGNED
Attachment #645362 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/7bf11bf3d11f
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: