NativeScript / NativeScript/android
V8 log files are not availables
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 563
- Forks
- 144
- Avg merge
- 10h 46m
- Merged PRs (30d)
- 14
Description
Environment
- CLI: 5.4.0
- Cross-platform modules: 5.4.2
- Android Runtime: 5.4.0
Describe the bug
V8 options can be passed on Android, but the default v8.log file is nowhere to be seen. Because of that, V8 profiling is not available.
To Reproduce
- Add
--profin v8 flags tns debug android
Problem : v8 logs are not traced in tns, logcat nor a file.
Expected behavior
v8 default log file (v8.log) should be written on Android device and available. Also, --logfile should enable the filename customization.
Sample
src/package.json
{
"main": "main.js",
"android": {
"v8Flags": "--expose_gc --prof --log-timer-events"
}
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the V8 flags in src/package.json and trace how tns debug android passes them to the Android runtime. Check where logcat and device files receive V8 output, then verify that --prof produces v8.log and --logfile uses the requested filename.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, cpp
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100