Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup(metrics): remove duplicated new_metric method #1991

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

Molter73
Copy link
Contributor

@Molter73 Molter73 commented Aug 5, 2024

What type of PR is this?

/kind cleanup

Any specific area of the project related to this PR?

/area libsinsp

Does this PR require a change in the driver versions?

What this PR does / why we need it:

This change was meant to go in as part of #1920, but somehow got lost in translation. Compilation of Falco will be fixed by falcosecurity/falco#3265.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

Signed-off-by: Mauro Ezequiel Moltrasio <mmoltras@redhat.com>
@Molter73
Copy link
Contributor Author

Molter73 commented Aug 5, 2024

/cc @incertum @FedeDP

@poiana poiana requested a review from incertum August 5, 2024 15:02
Copy link

github-actions bot commented Aug 5, 2024

Perf diff from master - unit tests

     4.34%     -1.57%  [.] sinsp_evt::load_params
     5.64%     +1.40%  [.] sinsp::next
    10.28%     +0.96%  [.] sinsp_parser::reset
     0.51%     +0.77%  [.] sinsp_evt::get_direction
     5.81%     -0.70%  [.] sinsp_evt::get_type
     5.22%     -0.52%  [.] next
     0.51%     +0.50%  [.] sinsp_filter_check::parse_field_name
     1.74%     -0.49%  [.] libsinsp::sinsp_suppress::process_event
     3.05%     +0.46%  [.] sinsp_thread_manager::get_thread_ref
     1.13%     +0.44%  [.] sinsp::fetch_next_event

Perf diff from master - scap file

    21.12%     -8.95%  [.] sinsp_filter_check::extract_nocache
     8.39%     +7.84%  [.] sinsp_filter_check::tostring
     4.24%     +6.52%  [.] sinsp_filter_check::rawval_to_string
    21.09%     -5.53%  [.] sinsp_evt_formatter::tostring_withformat
     3.70%     +3.52%  [.] std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>
     4.14%     +3.06%  [.] sinsp_filter_check::apply_transformers
     4.21%     +3.03%  [.] sinsp::next
     8.52%     +2.60%  [.] next
     8.37%     -2.54%  [.] sinsp_parser::reset
     8.24%     -2.46%  [.] sinsp_filter_check_event::extract_single

Heap diff from master - unit tests

peak heap memory consumption: 0B
peak RSS (including heaptrack overhead): 0B
total memory leaked: 0B

Heap diff from master - scap file

peak heap memory consumption: 0B
peak RSS (including heaptrack overhead): 0B
total memory leaked: 0B

Copy link

codecov bot commented Aug 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.99%. Comparing base (d22f7a4) to head (ae2d606).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1991   +/-   ##
=======================================
  Coverage   50.98%   50.99%           
=======================================
  Files         310      310           
  Lines       39612    39607    -5     
  Branches    17380    17313   -67     
=======================================
  Hits        20198    20198           
+ Misses      14342    14323   -19     
- Partials     5072     5086   +14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@poiana
Copy link
Contributor

poiana commented Aug 5, 2024

LGTM label has been added.

Git tree hash: 4c9f35d55723c9803d1f8152387598dfd10301e2

@FedeDP
Copy link
Contributor

FedeDP commented Aug 5, 2024

/milestone 0.18.0

@poiana poiana added this to the 0.18.0 milestone Aug 5, 2024
Copy link
Contributor

@FedeDP FedeDP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@poiana
Copy link
Contributor

poiana commented Aug 5, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: FedeDP, Molter73

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit 1feeb37 into falcosecurity:master Aug 5, 2024
45 of 46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants