For example:
<img width="1904" alt="Screen Shot 2021-11-05 at 11 59 05 AM" src="https://user-images.githubusercontent.com/29597/140540816-25d6d47b-7aea-4121-aeaa-565accc65b1f.png">

const error = new Error();
  error.stack = stackFrame;
  const frames = ErrorStackParser.parse(error);
  return frames.length === 1 ? frames[0] : null;
}
export default async function preprocessData(
  timeline: TimelineEvent[],
): Promise<ReactProfilerData> {
  const flamechart = preprocessFlamechart(timeline);
  const laneToReactMeasureMap = new Map();
  for (let lane: ReactLane = 0; lane < REACT_TOTAL_NUM_LANES; lane++) {
    laneToReactMeasureMap.set(lane, []);
  }
  const profilerData: ReactProfilerData = {
    batchUIDToMeasuresMap: new Map(),
    componentMeasures: [],
    duration: 0,
    flamechart,
    internalModuleSourceToRanges: new Map(),
    laneToLabelMap: new Map(),
    laneToReactMeasureMap,
    nativeEvents: [],