perforator | performance metrics for individual functions | Monitoring library
kandi X-RAY | perforator Summary
kandi X-RAY | perforator Summary
Perforator is a tool for recording performance metrics over subregions of a program (e.g., functions) using the Linux "perf" interface. The perf tool provided by the Linux kernel only supports collecting statistics over the complete lifetime of a program, which is often inconvenient when a program includes setup and cleanup that should not be profiled along with the benchmark. Perforator is not as comprehensive as perf but it allows you to collect statistics for individual functions or address ranges. Perforator only supports Linux AMD64. The target ELF binary may be generated from any language. For function lookup, make sure the binary is not stripped (it must contain a symbol table), and for additional information (source code regions, inlined function lookup), the binary must include DWARF information. Perforator supports position-independent binaries. Perforator is primarily intended to be used as a CLI tool, but includes a library for more general user-code tracing called utrace, a library for reading ELF/DWARF information from executables, and a library for tracing perf events in processes.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Run is the main entry point for testing
- Main entry point
- Wait waits for the program to complete and returns a Proc or an error .
- startProc starts a process and returns it .
- Read reads an elf file from r .
- newTracedProc returns a new Proc .
- getTag returns tag name and tag .
- ParseRegion returns AddressRegion from a string
- NewProgram returns a new program .
- makeProfilers creates a list of profiler objects .
perforator Key Features
perforator Examples and Code Snippets
Community Discussions
Trending Discussions on perforator
QUESTION
I have a line like
"In this task, you need to use the following equipment:
- Perforator
- Screwdriver
- Drill
After finishing work, the tool must be cleaned."
How do I extract elements from this string? As a result, I need an array like {"Perforator", "Screwdriver", "Drill"}
...ANSWER
Answered 2021-Mar-02 at 22:39One possible way to do it would be to break the string into lines, then try to convert each line into a number plus text, and take only the lines where the conversion is successful.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install perforator
Download the prebuilt binary from the releases page.
Install from source:
Install with go get (version info will be missing):
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page