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] Create annotation in K-NN plugin to measure the execution time and logging k-nn Stats #1594

Open
navneet1v opened this issue Apr 5, 2024 · 0 comments
Labels
enhancement Infrastructure Changes to infrastructure, testing, CI/CD, pipelines, etc.

Comments

@navneet1v
Copy link
Collaborator

Description

Currently in k-NN code base we time different functions like graph creation etc, and also we put some stats in k-NN stats api related to different invocations of different code path. To achieve this we have duplicated code all over the place.

To make it easier we can build some custom annotation in java that can do this work for us and which can be reused at different place.

Some annotation that I am thinking:

  1. @LogExecutionTime
  2. @EmitStats(name="FaissInit")

There can be many more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Infrastructure Changes to infrastructure, testing, CI/CD, pipelines, etc.
Projects
Status: Backlog
Development

No branches or pull requests

1 participant