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

[dummy13の試用] データベースの容量取得について #6

Open
mmmaru777 opened this issue Jul 24, 2014 · 1 comment
Open
Assignees
Milestone

Comments

@mmmaru777
Copy link

メモリ上にあるデータベースの容量を取得できるとメモリの見積もりができてうれしい気がします

@s-yata
Copy link
Contributor

s-yata commented Jul 25, 2014

これはあると便利だと思うので善処します.

ただし,将来的に共有メモリを導入する計画があるのですが,その場合にメモリ使用量をどのように提示するのかという課題があります.

実装については,各オブジェクトにメモリ使用量を返す関数を持たせることになると思います.
たとえば, DB::get_memory_usage(), Table::get_memory_usage() などを提供します.
上位のオブジェクトは,下位のオブジェクトのメモリ使用量を合計することで求めるようにします.

@s-yata s-yata self-assigned this Jul 29, 2014
@s-yata s-yata reopened this Jul 29, 2014
@s-yata s-yata modified the milestone: アイスボックス Jul 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants