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

github.com/felipeaz/cpu-profiling

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/felipeaz/cpu-profiling

  • v0.0.0-20220104011510-c1bdbf2bdb64
  • Source
  • Go
  • Socket score

Version published
Created
Source

cpu-profiling

Basic example of CPU Profiling in Golang which shows the bottlenecks and how much time is spent per function

Generate cpu.prof

Run the following command to create the cpu.prof file

go test -cpuprofile cpu.prof -bench .=

Analyze functions

First connect to pprof by running the command go tool pprof cpu.prof

Then, run the list command followed by the function name

list nonDivisibleSubset

list generateSubset

list updateSubset

FAQs

Package last updated on 04 Jan 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