firefox-devtools / firefox-devtools/profiler
C++-demangle JS function names for emscripten'd code
- Ngôn ngữ chính
- TypeScript
- Star
- 1.5k
- Fork
- 491
- Merge trung bình
- 3 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 30
Mô tả
If you compile a C++ project to JS using emscripten, you end up with JS function names like `__ZN20ShaderConstantBuffer9SetFloat3EiRKN4math6float3E`. Profiles of such code can be hard to read. We should run function names through a demangler so that they become readable; in the example that would be `ShaderConstantBuffer::SetFloat3(int, math::float3 const&)`.
There's a `demangle` module on npm that can do this.
┆Issue is synchronized with this [Jira Task](https://mozilla-hub.atlassian.net/browse/FP-117)
Hướng dẫn đóng góp
Hướng nghiên cứu
Issue không nêu tên tệp nguồn hay test nào; hãy bắt đầu bằng cách xác định mã profiler dùng để định dạng tên hàm JavaScript và xem xét module npm demangle được tích hợp vào đó như thế nào. Hoàn thành khi ví dụ emscripten mangled xuất hiện trong đầu ra của profiler dưới dạng ShaderConstantBuffer::SetFloat3(int, math::float3 const\u0026).
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, typescript
- Lĩnh vực
- performance
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100