New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cpuprofilify

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

cpuprofilify - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

lib/get-converter.js

@@ -8,3 +8,3 @@ 'use strict';

var dtraceRegex = /^\S+ \d+ \d+: \S+:\s*$/
, perfRegex = /^\S+ \d+ \d+\.\d+: \S+:\s*$/
, perfRegex = /^\S+ \d+ \d+\.\d+:(\s+\d+)? \S+:\s*$/
, instrumentsRegex = /^Running Time, *Self,.*, *Symbol Name/

@@ -11,0 +11,0 @@

{
"name": "cpuprofilify",
"version": "0.3.0",
"version": "0.3.1",
"description": "Converts output of various profiling/sampling tools to the .cpuprofile format so it can be loaded into Chrome DevTools.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -13,2 +13,10 @@ 'use strict';

test('\ngiven a perf stack info line (v3.18.7-200)', function (t) {
var fn = getConverter([ 'node 24009 946268.827234: 1 cycles:u: '], 0);
t.equal(fn.name, 'PerfConverter', 'returns perf converter')
t.equal(fn.proto.type, 'perf', 'type is perf')
t.end()
})
test('\ngiven a dtrace stack info line', function (t) {

@@ -15,0 +23,0 @@ var fn = getConverter([ 'iojs 86454 181016967: profile-1ms:'], 0);

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