Skip to content

Conversation

@ChayimFriedman2
Copy link
Contributor

Unfortunately, this requires a custom build of r-a, and it's quite slow.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 28, 2025
@ChayimFriedman2 ChayimFriedman2 force-pushed the dhat branch 3 times, most recently from 7a4a834 to e96b16b Compare October 28, 2025 08:39
@lnicola
Copy link
Member

lnicola commented Oct 28, 2025

I think I've tried this once and analysis-stats never finished, is it still the same?

@ChayimFriedman2
Copy link
Contributor Author

I did not check analysis-stats, but it does succeed cache priming, although it's very slow.

@ChayimFriedman2 ChayimFriedman2 force-pushed the dhat branch 2 times, most recently from dab5725 to 8d8a711 Compare October 28, 2025 08:56
Unfortunately, this requires a custom build of r-a, and it's quite slow.
pub(crate) fn handle_memory_usage(state: &mut GlobalState, _: ()) -> anyhow::Result<String> {
pub(crate) fn handle_memory_usage(_state: &mut GlobalState, _: ()) -> anyhow::Result<String> {
let _p = tracing::info_span!("handle_memory_usage").entered();
let mem = state.analysis_host.per_query_memory_usage();
Copy link
Member

Choose a reason for hiding this comment

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

Though the actual implementation of this has been commented out while salsa migration, won't there be a chance it to be re-implemented?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I do hope to also have a profiling option that does not require a custom build, but I imagine then this command will collect both.

@ShoyuVanilla ShoyuVanilla added this pull request to the merge queue Oct 31, 2025
Merged via the queue into rust-lang:master with commit 2e2e3eb Oct 31, 2025
16 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 31, 2025
@ChayimFriedman2 ChayimFriedman2 deleted the dhat branch October 31, 2025 07:19
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