Rocky_Mountain_Vending/.pnpm-store/v10/files/2d/9ea39c7df89deb212c2b30df49aeebbdf3cc8770b682745384429b9d15ab34572a383f933c6232572a72cb8adfe227f1cdcf848ef6ce902b72fc43d28ac0a7
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

64 lines
No EOL
1.8 KiB
Text

// Copyright 2024 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import { BaseNode } from './BaseNode.js';
class CPUNode extends BaseNode {
_event;
_childEvents;
correctedEndTs;
constructor(parentEvent, childEvents = [], correctedEndTs) {
const nodeId = `${parentEvent.tid}.${parentEvent.ts}`;
super(nodeId);
this._event = parentEvent;
this._childEvents = childEvents;
this.correctedEndTs = correctedEndTs;
}
get type() {
return BaseNode.types.CPU;
}
get startTime() {
return this._event.ts;
}
get endTime() {
if (this.correctedEndTs) {
return this.correctedEndTs;
}
return this._event.ts + this._event.dur;
}
get duration() {
return this.endTime - this.startTime;
}
get event() {
return this._event;
}
get childEvents() {
return this._childEvents;
}
/**
* Returns true if this node contains a Layout task.
*/
didPerformLayout() {
return this._childEvents.some(evt => evt.name === 'Layout');
}
/**
* Returns the script URLs that had their EvaluateScript events occur in this task.
*/
getEvaluateScriptURLs() {
const urls = new Set();
for (const event of this._childEvents) {
if (event.name !== 'EvaluateScript') {
continue;
}
if (!event.args.data?.url) {
continue;
}
urls.add(event.args.data.url);
}
return urls;
}
cloneWithoutRelationships() {
return new CPUNode(this._event, this._childEvents, this.correctedEndTs);
}
}
export { CPUNode };
//# sourceMappingURL=CPUNode.js.map