Rocky_Mountain_Vending/.pnpm-store/v10/files/e8/5295d0d9d4d1fbe703d971cf53397fa142ff49ac1fbf1b131f1123645b19d0d6ef34c8bec86256350c9a90283cf3f678187363169368c0af26ebe79fc7a6c4
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

28 lines
No EOL
1 KiB
Text

"use strict";
const privateCpuProfileName = process.env.__NEXT_PRIVATE_CPU_PROFILE;
const isCpuProfileEnabled = process.env.NEXT_CPU_PROF || privateCpuProfileName;
if (isCpuProfileEnabled) {
const { Session } = require('inspector');
const fs = require('fs');
const session = new Session();
session.connect();
session.post('Profiler.enable');
session.post('Profiler.start');
function saveProfile() {
session.post('Profiler.stop', (error, param)=>{
if (error) {
console.error('Cannot generate CPU profiling:', error);
return;
}
// Write profile to disk
const filename = `${privateCpuProfileName || 'CPU.main'}.${Date.now()}.cpuprofile`;
fs.writeFileSync(`./${filename}`, JSON.stringify(param.profile));
process.exit(0);
});
}
process.on('SIGINT', saveProfile);
process.on('SIGTERM', saveProfile);
process.on('exit', saveProfile);
}
//# sourceMappingURL=cpu-profile.js.map