Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] add node-report to core #19661

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 6 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,11 @@ parser.add_option('--without-npm',
dest='without_npm',
help='do not install the bundled npm (package manager)')

parser.add_option('--without-node-report',
action='store_true',
dest='without_node_report',
help='build without node-report')

parser.add_option('--without-perfctr',
action='store_true',
dest='without_perfctr',
Expand Down Expand Up @@ -903,6 +908,7 @@ def configure_node(o):
o['variables']['OS'] = 'android'
o['variables']['node_prefix'] = options.prefix
o['variables']['node_install_npm'] = b(not options.without_npm)
o['variables']['node_report'] = b(not options.without_node_report)
o['default_configuration'] = 'Debug' if options.debug else 'Release'

host_arch = host_arch_win() if os.name == 'nt' else host_arch_cc()
Expand Down
45 changes: 45 additions & 0 deletions deps/node-report/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app
*.node

# Project files
*.project
*.cproject

# Build directories
/build/
/node_modules/

# Package files
NodeReport*.txt
node-report*.txt
npm-debug.log
nodereport-*.tgz
nodereport_test.log
4 changes: 4 additions & 0 deletions deps/node-report/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!src/**
!binding.gyp
!index.js
144 changes: 144 additions & 0 deletions deps/node-report/CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
2017-09-26, Version 2.2.1
=========================

* Update README to show support for Node.js 8 (Richard Chamberlain)

* Remove use of std::map to sort version strings (Richard Chamberlain)

* Restructure node_report.cc, move functions to utilities.cc (Richard Chamberlain)

* Fix compile and linking issues on Alpine Linux (Richard Chamberlain)


2017-05-30, Version 2.2.0
=========================

* Additional information for libuv handles (Richard Lau)

* node_report.cc: Fix CreateMessage call (Howard Hellyer)

* Allow Error object to be passed to node-report (Howard Hellyer)

* windows: fix compile time error on mktime (Howard Hellyer)

* report: add average CPU consumption (Bidisha Pyne)

* Fix the use of %p to format handle pointers on non-Windows platforms. (Howard Hellyer)

* report: add word-size of the process (LAKSHMI SWETHA GOPIREDDY)


2017-03-23, Version 2.1.2
=========================

* Report compile time and runtime glibc version (Richard Lau)

* Improve useability of node-report demos (Richard Chamberlain)

* Fix return code from uncaught exception handler (Richard Chamberlain)

* Increase tap timeout for CI testing (Richard Chamberlain)

* test: Move OS version tests to common.js (Richard Lau)

* docs: update platform support (Richard Lau)

* smartos: enable node-report on SmartOS (Howard Hellyer)


2017-02-22, Version 2.1.1
=========================

* windows: fix reporting of machine name (Richard Chamberlain)

* test: fix test-api-getreport.js (Richard Lau)

* aix: improve readability of os version (Richard Lau)


2017-02-13, Version 2.1.0
=========================

* Provide getReport API to return the contents of node-report. (Howard Hellyer)


2017-02-09, Version 2.0.0
=========================

* mac: Fix compilation errors (Howard Hellyer)

* Rename nodereport module to node-report (Richard Chamberlain)

* Fix source directory for install target (Richard Lau)

* aix: skip command line check for test-fatal-error (Richard Lau)

* Add the list of library files loaded by the process to nodereport. (Howard Hellyer)

* docs: AIX supports triggering on USR2 signal (Richard Lau)

* Fix behaviour on exception to match node default (Richard Chamberlain)

* Adds the command line used to start the node process to nodereport. (Howard Hellyer)

* Opt-in hooks and signal by default (Richard Chamberlain)

* Fix for clang warning: libstdc++ is deprecated (Richard Chamberlain)


2016-12-12, Version 1.0.7
=========================

* Fix version reporting in NodeReport section (Richard Lau)

* Fix fprintf calls on Windows (Richard Lau)


2016-11-18, Version 1.0.6
=========================

* Fix test-exception.js for PPC (Richard Lau)

* Improve README.md (Jeremiah Senkpiel)

* Improvement to Windows version reporting (Richard Lau)

* Convert testcases to use tap (Richard Lau)


2016-11-10, Version 1.0.5
=========================

* Fix for failure in fatal error (OOM) test (Richard Chamberlain)

* Add support for nodereport on AIX (Richard Chamberlain)

* Deleting AUTHORS file. (Richard Chamberlain)

* Correct Javascript to JavaScript in README.md (Richard Chamberlain)

* Correct upper-case NPM, should be lower-case (Richard Chamberlain)

* Remove specific URLs for NPM (Richard Chamberlain)

* Add MAINTAINER.md file to document NPM release procedure (Richard Chamberlain)

* Set/correct package metadata in package.json (Richard Chamberlain)

* README documentation improvements (Richard Chamberlain)

* .gitignore the test autorun log file (Sam Roberts)

* test: require this module using correct syntax (Sam Roberts)

* .npmignore: do not pack unnecessary files (Sam Roberts)

* .gitignore: ignore npm ephemera and node reports (Sam Roberts)

* Need to define __STDC_FORMAT_MACROS for some glibc versions (Richard Chamberlain)


2016-10-28, Version 1.0.4
=========================

* First release!
39 changes: 39 additions & 0 deletions deps/node-report/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Contributing to node-report

## Code of Conduct

The [Node.js Code of Conduct][] applies to this repo.

[Node.js Code of Conduct]: https://github.com/nodejs/node/blob/master/CODE_OF_CONDUCT.md

## Code Contributions

The node-report project falls under the governance of the post-mortem
working group which is documented in:
https://github.com/nodejs/post-mortem/blob/master/GOVERNANCE.md

## Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

* (a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or

* (b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or

* (c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.

* (d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
5 changes: 5 additions & 0 deletions deps/node-report/GOVERNANCE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# node-report Project Governance

The node-report project falls under the governance of the post-mortem
working group which is documented in:
https://github.com/nodejs/post-mortem/blob/master/GOVERNANCE.md.
13 changes: 13 additions & 0 deletions deps/node-report/LICENCE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
The MIT License (MIT)
=====================

Copyright (c) 2016 node-report contributors
--------------------------------------------------

*nodereport contributors listed in <https://github.com/nodejs/nodereport/blob/master/package.json>*

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
15 changes: 15 additions & 0 deletions deps/node-report/MAINTAINER.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Instructions for maintainers of the node-report project

## Publishing to the npm registry

The node-report project is published as an npm native module

For each publish to npm:

- update the version property in the package.json file, incrementing the major, minor and patch level as appropriate
- update the CHANGES.md file with a list of commits since last release
- commit CHANGES.md and package.json to node-report master branch
- tag commit with an annotated tag
- git checkout and npm publish the node-report package

Suggested tooling is the slt-release script documented here: https://github.com/strongloop/strong-tools
Loading