Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix demangled C++ functions

  • Loading branch information...
commit 0187483aa51c3c6cbc4ee5b993e4be6598722804 1 parent a533c3c
@davepacheco davepacheco authored
Showing with 9 additions and 1 deletion.
  1. +8 −0 lib/input-dtrace.js
  2. +1 −1  package.json
View
8 lib/input-dtrace.js
@@ -73,6 +73,14 @@ DTraceStreamReader.prototype.onLine = function (line)
/* JSSTYLED */
frame = frame.replace(/\+.*/, '');
+ /*
+ * Remove both function and template parameters from demangled C++
+ * frames, but skip the first two characters because they're used by the
+ * Node.js ustack helper as separators.
+ */
+ /* JSSTYLED */
+ frame = frame.replace(/(..)[(<].*/, '$1');
+
if (line.length === 0) {
if (this.dsr_stack.length !== 0)
this.dsr_log.warn('line ' + this.dsr_lineum +
View
2  package.json
@@ -1,6 +1,6 @@
{
"name": "stackvis",
- "version": "0.0.1",
+ "version": "0.0.2",
"description": "stack visualization tools",
"main": "./lib/stackvis.js",
"bin": {
Please sign in to comment.
Something went wrong with that request. Please try again.