NativeScript / NativeScript/android
V8 log files are not availables
未关闭
还没有人认领这个 Issue。
- 主要语言
- C++
- 星标
- 563
- 派生
- 144
- 平均合并
- 10 小时 46 分钟
- 30 天内合并 PR
- 14
描述
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"
}
}
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 src/package.json 中的 V8 标志开始,跟踪 tns debug android 如何将它们传递给 Android 运行时。检查 logcat 和设备文件在哪里接收 V8 输出,然后验证 --prof 会生成 v8.log,而 --logfile 会使用请求的文件名。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, cpp
- 领域
- mobile-dev
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100