Rocky_Mountain_Vending/.pnpm-store/v10/files/18/ac50d87fec8e7a4fb6018a18b700ca84c6ab6cf0ee5827fa2a413c8f142e5077ec621bb5d12f7e824d6b97b38a48cde3190cd01537ffc7d7b39ebc672b9117
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

27 lines
No EOL
1,020 B
Text

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