Skip to content
This repository was archived by the owner on Jun 18, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Provide getReport API to return the contents of node-report.
Remove a couple of occurances of "NodeReport".
  • Loading branch information
hhellyer committed Feb 10, 2017
commit da29b1e14ce21d38d18a5a979b185a6b4174cebf
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ application.
var nodereport = require('node-report');
nodereport.triggerReport();
```
The content of a NodeReport can also be returned as a JavaScript string via an
The content of a report can also be returned as a JavaScript string via an
API call from a JavaScript application.

```js
Expand Down
2 changes: 1 addition & 1 deletion src/module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ NAN_METHOD(GetReport) {
std::ostringstream out;

GetNodeReport(isolate, kJavaScript, "JavaScript API", __func__, out);
// Return value is the contents of a NodeReport as a string.
// Return value is the contents of a report as a string.
info.GetReturnValue().Set(Nan::New(out.str()).ToLocalChecked());
}

Expand Down
4 changes: 2 additions & 2 deletions src/node_report.cc
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ void TriggerNodeReport(Isolate* isolate, DumpEvent event, const char* message, c

std::cerr << "Node.js report completed\n";
if (name != nullptr) {
snprintf(name, NR_MAXNAME + 1, "%s", filename); // return the NodeReport file name
snprintf(name, NR_MAXNAME + 1, "%s", filename); // return the report file name
}

}
Expand Down Expand Up @@ -525,7 +525,7 @@ static void WriteNodeReport(Isolate* isolate, DumpEvent event, const char* messa
pid_t pid = getpid();
#endif

// File stream opened OK, now start printing the NodeReport content, starting with the title
// File stream opened OK, now start printing the report content, starting with the title
// and header information (event, filename, timestamp and pid)
out << "================================================================================\n";
out << "==== Node Report ===============================================================\n";
Expand Down