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

Adding fuzzing session duration metric #4336

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

vitorguidi
Copy link
Collaborator

Motivation

We currently lack metrics for fuzzing session duration. This PR adds that as a histogram metric, with granularity by fuzzer, job and platform.

Part of #4271

Copy link
Collaborator

@jonathanmetzman jonathanmetzman left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -1698,6 +1698,7 @@ def do_blackbox_fuzzing(self, fuzzer, fuzzer_directory, job_type):

def run(self):
"""Run the fuzzing session."""
start_time = time.time()
Copy link
Collaborator

@alhijazi alhijazi Oct 25, 2024

Choose a reason for hiding this comment

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

LGTM, with one note on this including fuzzer setup time, I wonder how much time this takes and whether it's more accurate to move the start time to line 1775 just before do_engine_fuzzing and do_blackbox_fuzzing are called.

Copy link
Collaborator

Choose a reason for hiding this comment

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

You could also add a comment before the FUZZING_SESSION_DURATIONdefinition to state that this includes fuzzer setup and data bundles update times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants