Skip to content

add local reporter, unit and integration tests#25

Merged
arielb1 merged 5 commits into
async-profiler:mainfrom
arielb1:integration-2
Apr 24, 2025
Merged

add local reporter, unit and integration tests#25
arielb1 merged 5 commits into
async-profiler:mainfrom
arielb1:integration-2

Conversation

@arielb1
Copy link
Copy Markdown
Contributor

@arielb1 arielb1 commented Apr 24, 2025

📬 Issue #, if available:

Fixes #19

✍️ Description of changes:

🔏 By submitting this pull request

  • I confirm that I've made a best effort attempt to update all relevant documentation.
  • I confirm that my contribution is made under the terms of the Apache 2.0 license.

@arielb1 arielb1 force-pushed the integration-2 branch 30 times, most recently from 251beb0 to 0501fa2 Compare April 24, 2025 16:15
@arielb1 arielb1 changed the title groundwork for integration tests add unit and integration tests Apr 24, 2025
@arielb1 arielb1 changed the title add unit and integration tests add local reporter, unit and integration tests Apr 24, 2025
@arielb1 arielb1 requested a review from jlizen April 24, 2025 16:37
Comment thread src/reporter/local.rs Outdated
Comment thread src/reporter/local.rs
.to_rfc3339_opts(SecondsFormat::Secs, true)
.replace(":", "-");
let file_name = format!("{time}.jfr");
tokio::fs::write(self.directory.join(file_name), jfr).await?;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

tracing::debug! statement might be nice

Comment thread tests/build-async-profiler.sh
Comment thread src/reporter/local.rs Outdated
Comment thread src/reporter/local.rs Outdated
Copy link
Copy Markdown
Collaborator

@jlizen jlizen left a comment

Choose a reason for hiding this comment

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

Let's also mention LocalReporter (and MultiReporter) support in the README

Comment thread src/reporter/local.rs
@arielb1 arielb1 merged commit 85bbaa8 into async-profiler:main Apr 24, 2025
9 checks passed
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.

add an integration test

2 participants