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

Where can I find information about profiler help? #1177

Open
bluegodg opened this issue May 5, 2024 · 6 comments
Open

Where can I find information about profiler help? #1177

bluegodg opened this issue May 5, 2024 · 6 comments

Comments

@bluegodg
Copy link

bluegodg commented May 5, 2024

I am conducting an analysis on the memory profile and time profile of ddlog, and I noticed a link to the profiler help in the wiki: https://github.com/vmware/differential-datalog/wiki/Profiler-Help
But I found no relevant content in the link. Where can I find Profile Help related information?

@ryzhyk
Copy link
Contributor

ryzhyk commented May 5, 2024

Hi @bluegodg ! Unfortunately, we never wrote those docs. The project is no longer maintained, but you can find some profiler docs here.

@bluegodg
Copy link
Author

Alright, thanks for your response. I'm wondering now, what is the unit of the size value in the "Arrange size profile"? Is it in bytes?

@ryzhyk
Copy link
Contributor

ryzhyk commented May 16, 2024

It's the number of records. I don't think we had a way to report size in bytes in ddlog.

@bluegodg
Copy link
Author

Can I obtain the size of byte units by simply adding up the byte sizes ofeach field type in the Record?

@mihaibudiu
Copy link

In Rust that's only an approximation. There is a sizeof crate which is more precise

@ryzhyk
Copy link
Contributor

ryzhyk commented May 17, 2024

Can I obtain the size of byte units by simply adding up the byte sizes ofeach field type in the Record?

There's also per-record metadata overhead whose size can vary across different collections. 32 bytes is probably a reasonable ballpark estimate.

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

No branches or pull requests

3 participants