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

VMの可視化(につながるような何か)をやります #8

Open
2 tasks
musaprg opened this issue Aug 31, 2017 · 5 comments
Open
2 tasks

Comments

@musaprg
Copy link

musaprg commented Aug 31, 2017

VMの可視化(の足がかりとなるような情報を引っ張り出すこと)をしたいと思います。

VMの情報をどのように出せるのかわからない(現状そのようなログ機構が存在しない…?)ので、まずは様々なVMのステータス情報をログとして吐き出してみたいです。

TODO

  • VMの仕組みを理解する
  • ソースを見て、使えそうな情報をログとして吐かせるようにする
@ko1
Copy link
Owner

ko1 commented Aug 31, 2017

独学で理解するのは大変なので、どんどん聞いてください。

@musaprg
Copy link
Author

musaprg commented Aug 31, 2017

vm_core.h

@musaprg
Copy link
Author

musaprg commented Aug 31, 2017

コントロールフレームというものを積んでいく。
コントロールフレームには、以下の値が含まれている。

  • pc : プログラムカウンタ
  • sp : スタックポインタ
  • iseq : instruction sequence
  • self : ?
  • ep : ローカル変数を指すポインタ
  • block_code : ?

@musaprg
Copy link
Author

musaprg commented Aug 31, 2017

VALUE stat_insn_usage; statics data for profiler プロファイラー用の統計データ…?

@musaprg
Copy link
Author

musaprg commented Aug 31, 2017

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

No branches or pull requests

2 participants