-
-
Notifications
You must be signed in to change notification settings - Fork 35.2k
Open
Labels
v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.
Description
- Version: 12.0.0
- Platform: mac 10.12.4 && Debian 8
- Subsystem:
// app.js
// for more info about ReDoS, see:
// https://en.wikipedia.org/wiki/ReDoS
var r = /([a-z]+)+$/
var s = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!'
console.log('Running regular expression... please wait')
for(let i=1;i<100;i++){
console.time('benchmark');
const s = 'a'.repeat(i) + '!'
r.test(s);
console.timeEnd('benchmark');
}
$ node --cpu-prof app.js
$ kill -SIGINT {pid}
is this purpose ? or how can i get profile file when app killed by SIGINT?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.