clinicjs / node-clinic

Clinic.js diagnoses your Node.js performance issues
https://clinicjs.org
MIT License
5.64k stars 124 forks source link

clinic flame is not generating html file #335

Closed Rosnaldo closed 2 years ago

Rosnaldo commented 2 years ago

It should generate by default the html file in the folder .clinic but is not. The most stranger thing is that doctor and heapprofiler is generating corretly, only flame isn't generating and the command is basically the same. Also I'm using babel transpiler so I'm runing ./dist/index.js

clinic -v v11.0.0

package.json

{
  "name": "coodesh-api",
  "version": "1.61.2",
  "description": "RESTful Coodesh API with Node.js",
  "main": "server.js",
  "homepage": "https://lab.coodesh.com/apis/coodesh-api",
  "repository": {
    "type": "https",
    "url": "https://lab.coodesh.com/apis/coodesh-api.git"
  },
  "author": "Gabriel Ferreira <gabriel@coodesh.com>",
  "license": "ISC",
  "engines": {
    "node": ">=12.0"
  },
  "scripts": {
    "climem": "npx climem 8999",
    "start:climem": "CLIMEM=8999 nodemon -r climem server.js --exec babel-node",
    "test:autocannon": "npx autocannon -c 100 -d 10 -p 10 http://localhost:4001/jobs",
    "clinic-doctor": "clinic doctor -- node ./dist/index.js",
    "clinic-flame": "clinic flame -- node ./dist/index.js",
    "clinic-heapprofiler": "clinic heapprofiler -- node ./dist/index.js",
    "flame-0x": "npx 0x --quiet -- node ./dist/index.js",
    "start": "nodemon server.js --exec babel-node",
    "local": "NODE_ENV=local nodemon server.js --exec babel-node",
    "debug": "concurrently --handle-input 'nodemon --inspect server.js --exec babel-node' 'npm run lint:watch -- --cache'",
    "debug:dash": "node node_modules/.bin/nodejs-dashboard -- node -r nodejs-dashboard node_modules/.bin/nodemon --inspect server.js --exec babel-node",
    "debug:win": "nodemon ./server.js --exec babel-node -e js --inspect=0.0.0.0 coodesh-api",
    "build": "npm run clean && npx babel server.js --out-file dist/index.js && npx babel src -d dist/src --ignore '**/*.test.js' --ignore '**/tests' && npx cpy-cli src/locales dist/src/locales",
    "serve": "node ./dist",
    "clean": "npx rimraf dist",
    "messages:extract": "node ./src/utils/syncLocales",
    "lint": "npx eslint . --ext .js",
    "lint:git": "npm run lint -- --format git-log",
    "lint:fix": "npm run lint:git -- --fix",
    "lint:watch": "npx esw src/ --no-ignore -w",
    "test": "npx cross-env SERVER_PORT=4002 NODE_ENV=test MOCHA_FILE=./coverage/junit.xml MOCHAWESOME_REPORTFILENAME=mocha MOCHAWESOME_REPORTDIR=coverage mocha  --delay --reporter-options configFile=.mocharc.json --reporter-options outputs=true --inline-diffs --allow-uncaught",
    "test:update": "npx cross-env CHAI_JEST_SNAPSHOT_UPDATE_ALL=true npm test",
    "test:watch": "npm run test -- --watch",
    "coverage": "npx cross-env NODE_ENV=test nyc mocha --require @babel/register --delay",
    "changelog": "npx cross-env auto-changelog && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' --no-verify",
    "documentation:lint": "npx documentation lint src/**",
    "documentation:watch": "npx documentation build src/** --watch -f html -o api-docs",
    "documentation:build": "npx documentation build src/** -f html -o api-docs",
    "documentation:serve": "npx static-server api-docs",
    "notification-catcher": "notification-catcher",
    "anonimize": "npx babel-node ./src/tests/utils/anonimize.js",
    "clinic": "npx babel-node ./src/tests/utils/clinicDoctor.js",
    "prepare": "husky install"
  },
  "dependencies": {
    "@babel/polyfill": "^7.12.1",
    "@gitbeaker/node": "^31.0.0",
    "@octokit/rest": "^18.0.12",
    "@sendgrid/client": "^7.4.0",
    "@sendgrid/mail": "^7.4.0",
    "@sentry/hub": "^6.1.0",
    "@sentry/node": "^6.1.0",
    "@sentry/react": "^6.1.0",
    "@sentry/tracing": "^6.1.0",
    "@tensorflow/tfjs-core": "^2.3.0",
    "analytics-node": "^5.1.0",
    "async": "^3.2.0",
    "bcryptjs": "^2.4.3",
    "bluebird": "^3.7.2",
    "body-parser": "^1.18.2",
    "build-url": "^6.0.1",
    "cachegoose": "^8.0.0",
    "celebrate": "^13.0.4",
    "cep-promise": "^4.0.3",
    "climem": "^1.0.3",
    "clinic": "^11.0.0",
    "cloudinary": "^1.23.0",
    "compression": "^1.7.4",
    "consolidate": "^0.16.0",
    "cors": "^2.8.4",
    "email-comb": "^5.1.0",
    "escape-string-regexp": "^4.0.0",
    "eventemitter2": "^6.4.3",
    "express": "^4.17.1",
    "express-recaptcha": "^5.0.2",
    "express-request-id": "^1.4.1",
    "express-useragent": "^1.0.15",
    "flat": "^5.0.2",
    "formidable": "^1.2.2",
    "geoip-lite": "^1.4.2",
    "gitlab": "^14.2.2",
    "glob": "^7.1.6",
    "he": "^1.2.0",
    "helmet": "^4.2.0",
    "html-minifier": "^4.0.0",
    "http-status-codes": "^2.1.4",
    "http-terminator": "^3.0.0",
    "i18n": "^0.13.3",
    "iso-lang": "^1.0.1",
    "joi-objectid": "^3.0.1",
    "joi-translation-pt-br": "0.0.1",
    "juice": "^8.0.0",
    "jwt-simple": "^0.5.1",
    "linkedin-parser": "git+ssh://git@lab.coodesh.com:libs/linkedin-parser.git#1.0.3-beta.5",
    "lodash": "^4.17.20",
    "log4js": "^6.3.0",
    "markdown-it": "^12.1.0",
    "method-override": "^3.0.0",
    "moment": "^2.29.1",
    "moment-timezone": "^0.5.33",
    "mongodb-memory-server-core": "^6.9.3",
    "mongoose": "^5.11.8",
    "mongoose-aggregate-paginate-v2": "^1.0.42",
    "mongoose-deep-populate": "^3.2.0",
    "mongoose-delete": "^0.5.3",
    "mongoose-field-encryption": "4.0.2",
    "mongoose-hidden": "^1.9.0",
    "mongoose-history-plugin": "^3.0.1",
    "mongoose-paginate-v2": "^1.3.13",
    "multer": "^1.4.2",
    "multer-storage-cloudinary": "^4.0.0",
    "node-fetch": "^2.6.1",
    "node-mandrill": "^1.0.1",
    "node-schedule": "^2.0.0",
    "notifme-sdk": "^1.10.0",
    "notifme-template": "^1.0.0",
    "number-generator": "^4.0.4",
    "passport": "^0.4.1",
    "passport-facebook": "^3.0.0",
    "passport-github": "^1.1.0",
    "passport-google-oauth": "^2.0.0",
    "passport-linkedin-oauth2": "^2.0.0",
    "password-sheriff": "^1.1.0",
    "paypal-rest-sdk": "^1.8.1",
    "pluralize": "^8.0.0",
    "rate-limiter-flexible": "^2.1.15",
    "redis": "^3.0.2",
    "redis-delete-pattern": "^0.1.0",
    "request": "^2.88.2",
    "response-time": "^2.3.2",
    "secure-compare": "^3.0.1",
    "slackify-markdown": "^4.3.0",
    "slugify": "^1.4.6",
    "socket.io": "^3.0.4",
    "socket.io-redis": "^6.0.1",
    "string-similarity": "^4.0.3",
    "stripe": "^8.129.0",
    "swagger-ui-express": "^4.1.6",
    "swig-templates": "^2.0.3",
    "turndown": "^7.1.1",
    "uuid": "^8.3.2",
    "xss": "^1.0.9",
    "yamljs": "^0.3.0",
    "zxcvbn": "^4.4.2"
  },
  "devDependencies": {
    "0x": "^5.1.2",
    "@babel/cli": "^7.12.10",
    "@babel/core": "^7.12.10",
    "@babel/node": "^7.12.10",
    "@babel/plugin-proposal-class-properties": "^7.12.1",
    "@babel/plugin-proposal-optional-chaining": "^7.12.7",
    "@babel/plugin-transform-runtime": "^7.12.10",
    "@babel/preset-env": "^7.12.11",
    "@babel/register": "^7.12.10",
    "@babel/runtime": "^7.12.5",
    "@nearform/bubbleprof": "^6.0.1",
    "@nearform/doctor": "^7.0.1",
    "@nearform/flame": "^8.0.1",
    "@semantic-release/changelog": "^5.0.1",
    "@semantic-release/commit-analyzer": "^8.0.1",
    "@semantic-release/git": "^9.0.0",
    "@semantic-release/gitlab": "^6.0.8",
    "@semantic-release/gitlab-config": "^8.0.0",
    "@semantic-release/release-notes-generator": "^9.0.1",
    "auto-changelog": "^2.2.1",
    "autocannon": "^7.0.1",
    "babel-eslint": "^10.1.0",
    "babel-plugin-module-resolver": "^4.1.0",
    "chai": "^4.2.0",
    "chai-as-promised": "^7.1.1",
    "chai-each": "0.0.1",
    "chai-http": "^4.3.0",
    "chai-integer": "^0.1.0",
    "chai-jest-snapshot": "^2.0.0",
    "chai-url": "^1.0.4",
    "concurrently": "^5.3.0",
    "conventional-changelog-conventionalcommits": "^4.5.0",
    "conventional-changelog-express": "^2.0.6",
    "cross-env": "^7.0.3",
    "deep-equal-in-any-order": "^1.1.15",
    "eslint": "^7.16.0",
    "eslint-config-airbnb-base": "^14.2.1",
    "eslint-config-prettier": "^7.1.0",
    "eslint-formatter-git-log": "^0.5.3",
    "eslint-formatter-gitlab": "^2.1.0",
    "eslint-import-resolver-alias": "^1.1.2",
    "eslint-plugin-chai-expect": "^2.2.0",
    "eslint-plugin-import": "^2.22.1",
    "eslint-plugin-mocha": "^8.0.0",
    "eslint-plugin-node": "^11.1.0",
    "eslint-watch": "^7.0.0",
    "husky": "^7.0.0",
    "lint-staged": "^10.5.3",
    "mocha": "^8.2.1",
    "mocha-junit-reporter": "^2.0.0",
    "mocha-multi-reporters": "^1.5.1",
    "mocha-tags": "^1.0.1",
    "mochawesome": "^6.2.1",
    "mongo-seeding": "^3.5.0",
    "nodejs-dashboard": "^0.5.1",
    "nodemon": "^2.0.6",
    "notification-catcher": "^1.2.1",
    "nyc": "^15.1.0",
    "prettier": "^2.2.1",
    "prettier-eslint-cli": "^5.0.0",
    "pretty-quick": "^3.1.0",
    "rimraf": "^3.0.2",
    "seedrandom": "^3.0.5",
    "semantic-release": "^15.14.0",
    "sentry-testkit": "^3.3.0",
    "should": "^13.2.3",
    "sinon": "^9.2.2",
    "sinon-chai": "^3.5.0"
  },
  "lint-staged": {
    "./**/*.{js,jsx}": [
      "eslint --fix",
      "pretty-quick -- staged",
      "git add"
    ]
  },
  "nodemonConfig": {
    "ignore": [
      "seeds/*",
      "tests/*",
      "docs/*",
      "api-docs/*",
      "/logs/*"
    ]
  }
}
RafaelGSS commented 2 years ago

Could you create a reproducible code?

Rosnaldo commented 2 years ago

Already solved the issue. I am using the libs @clinic/flame, @clinic/doctor runing a script instead of runing in the terminal.