build_add_electron_tracing_category.patch 1.3 KB

12345678910111213141516171819202122
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: Samuel Attard <[email protected]>
  3. Date: Tue, 23 Apr 2019 09:51:43 -0700
  4. Subject: build_add_electron_tracing_category.patch
  5. All TRACE events in Chromium use a static assert to ensure that the
  6. categories in use are known / declared. This patch is required for us
  7. to introduce a new Electron category for Electron-specific tracing.
  8. diff --git a/base/trace_event/builtin_categories.h b/base/trace_event/builtin_categories.h
  9. index 1ddaeafd2779a40a56c11b2e0b22e057c578bd0a..0f52af2a437c548fd85b82b313cf2826f4dea590 100644
  10. --- a/base/trace_event/builtin_categories.h
  11. +++ b/base/trace_event/builtin_categories.h
  12. @@ -80,6 +80,8 @@
  13. X("drm") \
  14. X("drmcursor") \
  15. X("dwrite") \
  16. + X("DXVA_Decoding") \
  17. + X("electron") \
  18. X("evdev") \
  19. X("event") \
  20. X("exo") \