Skip to content

Commit

Permalink
missed one
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Jun 12, 2024
1 parent a87e93a commit 5a19152
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/scripts/lantern/run-once.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import fs from 'fs';
import path from 'path';

import * as Lantern from '../../lib/lantern/lantern.js';
import PredictivePerf from '../../audits/predictive-perf.js';
import {Simulator} from '../../lib/lantern/simulation/Simulator.js';
import traceSaver from '../../lib/lantern-trace-saver.js';
import {LH_ROOT} from '../../../shared/root.js';
import {readJson} from '../../test/test-utils.js';
Expand Down Expand Up @@ -42,7 +42,8 @@ async function run() {
process.stdout.write(JSON.stringify(result.details.items[0], null, 2));

// Dump the TTI graph with simulated timings to a trace if LANTERN_DEBUG is enabled
const pessimisticTTINodeTimings = Simulator.ALL_NODE_TIMINGS.get('pessimisticInteractive');
const pessimisticTTINodeTimings =
Lantern.Simulation.Simulator.ALL_NODE_TIMINGS.get('pessimisticInteractive');
if (process.env.LANTERN_DEBUG && pessimisticTTINodeTimings) {
const outputTraceFile = path.basename(tracePath).replace(/.trace.json$/, '.lantern.trace.json');
const outputTracePath = path.join(LH_ROOT, '.tmp', outputTraceFile);
Expand Down

0 comments on commit 5a19152

Please sign in to comment.