// 标记一个即时 trace event
lynx.performance.profileMark('FetchStarted');
// 标记一个即时 trace event 并添加自定义参数
lynx.performance.profileMark('FetchStarted', {
args: { status: 'initiated' },
});
// 标记一个 flow 类型的即时 trace event
const flowId = lynx.performance.profileFlowId();
lynx.performance.profileMark('ActionCheckpoint', { flowId });
// 标记一个 flow 类型的即时 trace event 并添加自定义参数
lynx.performance.profileMark('ProcessMidpoint', {
args: { step: 'middle' },
flowId,
});