All Projects → hyj1991 → V8 Analytics

hyj1991 / V8 Analytics

v8 engine's cpu & heap-memory analytics

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to V8 Analytics

Swiggy Analytics
Analyse your swiggy orders 🍔
Stars: ✭ 163 (-9.94%)
Mutual labels:  analytics
Angulartics
Analytics for AngularJS applications.
Stars: ✭ 1,966 (+986.19%)
Mutual labels:  analytics
Alertmanager2es
Receives HTTP webhook notifications from AlertManager and inserts them into an Elasticsearch index for searching and analysis
Stars: ✭ 173 (-4.42%)
Mutual labels:  analytics
Stats
A well tested and comprehensive Golang statistics library package with no dependencies.
Stars: ✭ 2,196 (+1113.26%)
Mutual labels:  analytics
Stacks Cli
📊 Analyze website stack from the terminal 💻
Stars: ✭ 1,962 (+983.98%)
Mutual labels:  analytics
Creepminer
Burstcoin C++ CPU and GPU Miner
Stars: ✭ 169 (-6.63%)
Mutual labels:  cpu
Goatcounter
Easy web analytics. No tracking of personal data.
Stars: ✭ 2,270 (+1154.14%)
Mutual labels:  analytics
Bmw Yolov4 Inference Api Cpu
This is a repository for an nocode object detection inference API using the Yolov4 and Yolov3 Opencv.
Stars: ✭ 180 (-0.55%)
Mutual labels:  cpu
Jekyll Analytics
Plugin to easily add webanalytics to your jekyll site. Currently Google Analytics, Piwik and mPulse are supported.
Stars: ✭ 166 (-8.29%)
Mutual labels:  analytics
Amplify Cli
The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development.
Stars: ✭ 2,399 (+1225.41%)
Mutual labels:  analytics
Lares
R Library for Analytics and Machine Learning
Stars: ✭ 164 (-9.39%)
Mutual labels:  analytics
Countly Sdk Web
Countly Product Analytics SDK for websites and web applications
Stars: ✭ 165 (-8.84%)
Mutual labels:  analytics
Media Watermark
GPU/CPU-based iOS Watermark Library for Image and Video Overlay
Stars: ✭ 170 (-6.08%)
Mutual labels:  cpu
Wordpress Sdk
Stars: ✭ 162 (-10.5%)
Mutual labels:  analytics
Web Database Analytics
Web scrapping and related analytics using Python tools
Stars: ✭ 175 (-3.31%)
Mutual labels:  analytics
Rv12
RISC-V CPU Core
Stars: ✭ 162 (-10.5%)
Mutual labels:  cpu
Vue Matomo
Vue plugin for Piwik / Matomo Analytics
Stars: ✭ 168 (-7.18%)
Mutual labels:  analytics
Aws Serverless Data Lake Framework
Enterprise-grade, production-hardened, serverless data lake on AWS
Stars: ✭ 179 (-1.1%)
Mutual labels:  analytics
Ios Consent Sdk
Configurable consent SDK for iOS
Stars: ✭ 178 (-1.66%)
Mutual labels:  analytics
Riscv Fs
F# RISC-V Instruction Set formal specification
Stars: ✭ 173 (-4.42%)
Mutual labels:  cpu

中文版

npm version Package Quality license

v8-analytics/v8-cpu-analysis

Analysis the cpu & heap-memory log file which created by v8-profiler & heapdump,it can:

  • show you functions which are optimized failed by v8 engine
  • show you functions which exectime greater than your expected
  • show you suspicious memory leak point

Why Two Names?

v8-analytics is completely equivalent to v8-cpu-analysis, there is no difference between them.

Beacuse I want to introduce v8 engine's heap-memory analytics, so I think cpu in package name is not suitable. More, to be compatible with before, I chose them published comletely equivalent.

Installation

For Global

$ npm install v8-analytics -g

or

$ npm install v8-cpu-analysis -g

For Embedded JS code

$ npm install v8-analytics

or

$ npm install v8-cpu-analysis

Test

if you install -g, try:

//test bailout
$ va test bailout
$ va test bailout --only
//test timeout
$ va test timeout
$ va test timeout 200
$ va test timeout 200 --only
$ va test leak

va test bailout --only can list you all functions which are deoptimized, and it's deoptimization reason.

va test timeout 200 --only can list you all function which exectime > 200ms.

va test leak cans list you suspicious leak point in your project.

Quick Start

You can use this at the command line or embedded in your js code

I. Command Line

Find Function Bailout Reason

The xxx.cpu.json file created by v8-profiler:

$ va bailout xxx.cpu.json

This will list all Function, and turn the deoptimized function to red. You can also use like that:

$ va bailout xxx.cpu.json --only

This will only list the deoptimized functions.

Find Funtion Exectime Greater Than Expected

$ va timeout xxx.cpu.json

This will list all Function, and their exectime

$ va timeout xxx.cpu.json 200

This will list all Function ,and turn the functions which exectime > 200ms to red.

$ va timeout xxx.cpu.json 200 --only

This will only list the functions which exectime > 200ms.

Find suspicious memory leak point

$ va leak xxx.mem.json

This will show you suspicous leak ponit in your node.js project.

II. Embedded JS Code

'use strict';
const fs = require('fs');
const v8Analytics = require('v8-analytics');
//or you can use following, they're equival
//const v8Analytics = require('v8-cpu-analysis');

//list all js function and it's execTime
const json = JSON.parse(fs.readFileSync('./test.cpu.json'));
const str = v8Analytics(json);
console.log(str);

//list you heap memory info
const json = JSON.parse(fs.readFileSync('./test.mem.json'));
const {leakPoint, heapMap, statistics} = analysisLib.memAnalytics(allData)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].