// Start a trace event with only a namelynx.performance.profileStart('DataFetch');// Start a trace event with custom argumentslynx.performance.profileStart('DataFetch', { args: { url: 'https://api.example.com/data', method: 'GET' },});// Start a trace event with a flow idconst flowId = lynx.performance.profileFlowId();lynx.performance.profileStart('UserAction', { flowId });// Start a duration event with both arguments and flow IDlynx.performance.profileStart('ComplexProcess', { args: { step: 'start' }, flowId,});
Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.