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

[Enhancement]: More accurate memory usage statistics #27

Open
1 task done
cococo2000 opened this issue Aug 12, 2024 · 0 comments
Open
1 task done

[Enhancement]: More accurate memory usage statistics #27

cococo2000 opened this issue Aug 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@cococo2000
Copy link
Collaborator

Is there an existing issue for this?

  • I have searched the existing issues

What would you like to be added?

    def get_memory_usage(self) -> Optional[float]:
        """
        Returns the current memory usage of this ANN algorithm instance in kilobytes.

        Returns:
            float: The current memory usage in kilobytes (for backwards compatibility), or None if
                this information is not available.
        """
        return psutil.Process().memory_info().rss / 1024

Why is this needed?

No response

Anything else?

No response

@cococo2000 cococo2000 added the enhancement New feature or request label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant