Improve wasm64 support (#1492)

- Reduce duplication in .gni files
- Make 64-bit detection synchronous. The async adds extra complexity
that can be avoided.
- Change the way 64-bit-only is passed. I am not a an of the "async
import" as that
IMHO creates unnecessary risks and makes the code even more complicate
due to
an unnecessary async. Instad use a stub import + rollup to redirect to
the real import.
- Rollback some of the changes to engine.ts. I don't like the extra
layers introduced by
#1458. I think the previous model where wasm_bridge.ts does everything
is cleaner.
- Fix a bug which #1458 accidentally re-introduced on wasm32, where
addresses that are
 between 2GB and 4GB accidentally become negative offsets.

I tested it both on Chrome (which supports wasm64) and an older Firefox
(which doesn't)
8 files changed
tree: 502be10170215d207c6a9289e5324b08c8d4aae7
  1. .github/
  2. bazel/
  3. build_overrides/
  4. buildtools/
  5. debian/
  6. docs/
  7. examples/
  8. gn/
  9. include/
  10. infra/
  11. protos/
  12. python/
  13. src/
  14. test/
  15. third_party/
  16. tools/
  17. ui/
  18. .bazelignore
  19. .bazelrc
  20. .bazelversion
  21. .clang-format
  22. .clang-tidy
  23. .git-blame-ignore-revs
  24. .gitallowed
  25. .gitattributes
  26. .gitignore
  27. .gn
  28. .style.yapf
  29. .yapfignore
  30. Android.bp
  31. Android.bp.extras
  32. BUILD
  33. BUILD.extras
  34. BUILD.gn
  35. CHANGELOG
  36. codereview.settings
  37. DIR_METADATA
  38. heapprofd.rc
  39. LICENSE
  40. meson.build
  41. METADATA
  42. MODULE.bazel
  43. MODULE.bazel.lock
  44. MODULE_LICENSE_APACHE2
  45. OWNERS
  46. perfetto.rc
  47. perfetto_flags.aconfig
  48. PerfettoIntegrationTests.xml
  49. persistent_cfg.pbtxt
  50. README.chromium
  51. README.md
  52. TEST_MAPPING
  53. traced_perf.rc
  54. WATCHLISTS
  55. WORKSPACE
README.md

Perfetto - System profiling, app tracing and trace analysis

Perfetto is a production-grade open-source stack for performance instrumentation and trace analysis. It offers services and libraries and for recording system-level and app-level traces, native + java heap profiling, a library for analyzing traces using SQL and a web-based UI to visualize and explore multi-GB traces.

See https://perfetto.dev/docs or the /docs/ directory for documentation.