forked from bretcope/node-gc-profiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4af0b6
commit 25a2bbb
Showing
3 changed files
with
38 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,12 @@ | |
"description": "Allows you to profile when the garbage collector runs, and how long it takes.", | ||
"version": "1.2.0", | ||
"author": "Bret Copeland <[email protected]>", | ||
"contributors": [{ | ||
"name": "Daniel Khan", | ||
"email": "[email protected]" | ||
}], | ||
"main": "./main.js", | ||
"gypfile": true, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/bretcope/node-gc-profiler.git" | ||
|
@@ -16,6 +21,6 @@ | |
], | ||
"license": "MIT", | ||
"dependencies": { | ||
"nan": "^1.6.2" | ||
"nan": "^2.0.8" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This should be
_callback.Reset(info[0].As<v8::Function>());
The current code leaks a persistent reference due to theNan::Persistent<>
constructor.