Make default release mode build a "profiling" build
未关闭
还没有人认领这个 Issue。
- 主要语言
- C++
- 星标
- 74
- 派生
- 9
- PR 合并指标
- 30 天内没有已合并 PR
描述
For the ability to profile our code with perf (and to generate the most readable flamegraphs) it is important to:
- Compile with
-fno-omit-frame-pointer(unless the compiler already defaults to using this flag?) - Compile with some debug symbols (unless you don't need detailed stack traces of your node module)
Doing this would move node-cpp-skel to doing a "profiling" build by default: https://github.com/mapbox/cpp/blob/master/glossary.md#profiling-build.
We can accomplish this by applying something like https://github.com/mapnik/node-mapnik/pull/804 to node-cpp-skel.
refs https://twitter.com/brendangregg/status/472869470675795968
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
检查仓库的默认 release-build 配置,然后将所请求的方法与 node-mapnik PR #804 进行比较。确认默认构建使用 -fno-omit-frame-pointer 并包含调试符号,并验证生成的 Node 模块仍可构建且适用于 perf 火焰图。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cpp, node.js
- 领域
- build-system, performance
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100