Skip to content

--cpu-prof not generate profile file when killed by SIGINT #27406

@hardfist

Description

@hardfist
  • 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?

Metadata

Metadata

Assignees

Labels

v8 engineIssues and PRs related to the V8 dependency.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions