Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

diat-linux-perf

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diat-linux-perf

Library to replace V8's `--perf-basic-prof` flag, with the ability to toggle creation of Linux `perf` map files during runtime.

  • 1.5.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

node-linux-perf

Library to replace V8's --perf-basic-prof flag, with the ability to toggle creation of Linux perf map files during runtime.

It's recommended to run Node.js with the --interpreted-frames-native-stack flag enabled, otherwise Linux perf will not be able to translate the name of many JavaScript functions.

Build Status

VersionStatus
Node.js v10.xv10.x badge
Node.js v12.xv12.x badge
nodejs/node@mastermaster badge
nodejs/node-v8@canaryv8-canary badge

Installation

$ npm install linux-perf

Usage

const linuxPerf = require('linux-perf');

// Generated a /tmp/perf-PID.map file and updates it when necessary
linuxPerf.start();

// **YOUR CODE HERE**

// Stops writing to /tmp/perf-PID.map
linuxPerf.stop();

API

start(): bool

Generates a /tmp/perf-PID.map file and updates it when necessary (for example, when new functions are declared). If a /tmp/perf-PID.map file already exists, its content will be erased, and a new file will be generated.

Return: true if the file was generated successfully, false otherwise.

stop(): bool

Stops writing to /tmp/perf-PID.map. The content written on the file is preserved.

Return: true if it was able to stop writting to the file, false otherwise.

Keywords

FAQs

Package last updated on 26 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc