graphrag icon indicating copy to clipboard operation
graphrag copied to clipboard

[Issue]: <title> Where can I view Memory profile information?

Open yunfan42 opened this issue 5 months ago • 0 comments

Do you need to file an issue?

  • [X] I have searched the existing issues and this bug is not already filed.
  • [ ] My model is hosted on OpenAI or Azure. If not, please look at the "model providers" issue and don't file a new one here.
  • [ ] I believe this is a legitimate bug, not just a question. If this is a question, please use the Discussions area.

Describe the issue

There is a "--memprofile" parameter in the index building stage.

After setting it, where should I go to view the corresponding Memory profile information?

My run command is: python -m graphrag.index --root ./ragtest --memprofile

I checked the output/stats.json and reports/index-engine.log in the running directory. Neither contained the corresponding information.

I referred to the usage of MemoryProfile in #https://github.com/microsoft/datashaper/blob/main/python/examples/notebooks/profiling.ipynb

The MemoryProfile in the Result (WorkflowRunResult) memory_profile is None.

So I want to know where I can see the corresponding information.

Steps to reproduce

No response

GraphRAG Config Used

# Paste your config here

Logs and screenshots

image

Additional Information

  • GraphRAG Version:
  • Operating System:
  • Python Version:
  • Related Issues:

yunfan42 avatar Sep 23 '24 12:09 yunfan42