Skip to content

Commit

Permalink
chore: revert some changes to get_sinsp_stats_v2
Browse files Browse the repository at this point in the history
Signed-off-by: Melissa Kilby <[email protected]>
  • Loading branch information
incertum committed Feb 7, 2024
1 parent fe8daca commit 635bcc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions userspace/libsinsp/sinsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1765,6 +1765,11 @@ const scap_agent_info* sinsp::get_agent_info() const
return m_agent_info;
}

std::shared_ptr<sinsp_stats_v2> sinsp::get_sinsp_stats_v2()
{
return m_sinsp_stats_v2;
}

std::shared_ptr<const sinsp_stats_v2> sinsp::get_sinsp_stats_v2() const
{
return m_sinsp_stats_v2;
Expand Down
1 change: 1 addition & 0 deletions userspace/libsinsp/sinsp.h
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ class SINSP_PUBLIC sinsp : public capture_stats_source
\brief Return sinsp stats v2 containing continually updated counters around thread and fd state tables.
*/
std::shared_ptr<sinsp_stats_v2> get_sinsp_stats_v2();
std::shared_ptr<const sinsp_stats_v2> get_sinsp_stats_v2() const;

/*!
Expand Down

0 comments on commit 635bcc9

Please sign in to comment.