Lynx Trace allows you to add custom trace events to your code, helping you track specific operations or logic flows. This is useful for profiling custom business logic, measuring durations, or marking important points in your app.
useEffect
hook takes;By adding custom trace events, you transform opaque code sections into visible, measurable segments in Lynx Trace’s timeline, enabling precise performance tuning.
beginSection
must have a corresponding endSection
, and both calls must occur on the same thread.endSection
from being called.beginSection
/endSection
across asynchronous boundaries like timers or callbacks.