Skip to content

Commit

Permalink
agents: refactor profiling on ZmqAgent
Browse files Browse the repository at this point in the history
In preparation of adding support for heap profiling and sampling,
extract the CPU Profiling logic into a 2 generic templated functions:
`start_prof()` and `got_prof()` which can be configured via specific
policies. Create the `CPUProfilePolicy` for now. Later on we will add
policies for heap profiling and sampling.
Encapsulate the state of every profile type into a `ProfileState`.

PR-URL: #90
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
  • Loading branch information
santigimeno committed Feb 27, 2024
1 parent 1bd9c6d commit 5dd46b2
Show file tree
Hide file tree
Showing 2 changed files with 226 additions and 157 deletions.
Loading

0 comments on commit 5dd46b2

Please sign in to comment.