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

Prettier output for timetrace files when using ttviz & ttanal #430

Merged
merged 2 commits into from
May 28, 2024
Merged

Conversation

alexaryn
Copy link
Contributor

No description provided.

@alexaryn alexaryn requested a review from HenryL27 May 28, 2024 21:06
Comment on lines 51 to 53
("MB", 1048576),
("GB", 1073741824),
("TB", 1099511627776),
Copy link
Collaborator

Choose a reason for hiding this comment

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

any chance of notating these numbers as 2**20, 2**30, 2**40 or at least sticking in underscores?


def pretty_mem(s: float) -> str:
return pretty_num(mem_units, s)

class Foo:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I must be missing something here but why is this a class in the first place?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a habit, because globals are bad and encapsulation is good. I forgot to take advantage. Update coming momentarily.

@alexaryn alexaryn merged commit ee9516e into main May 28, 2024
9 of 12 checks passed
@alexaryn alexaryn deleted the ttanal branch May 28, 2024 22:41
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.

None yet

2 participants