是否可以将动态生成的代码通知Mac OS X上的DTrace? [英] Is it possible to notify DTrace on Mac OS X of dynamically generated code?

查看:67
本文介绍了是否可以将动态生成的代码通知Mac OS X上的DTrace?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们想扩展Mono的VM,以生成可供 DTrace 和工具使用的信息

We would like to extend Mono's VM to generate information that can be consumed by DTrace and instruments.

我正在考虑对Mono运行时进行更改,以使其注册或通知它已动态生成的代码,以便DTrace可以为这些代码块生成有用的信息.

I am looking at making changes to the Mono runtime to have it register or notify the code that it has dynamically generated so DTrace can produce useful information for those blocks of code.

推荐答案

您要包含哪些信息?

执行此操作的主要示例是ustack助手,它们从VM传递到DTrace,如何将堆栈帧转换为人类可读的帧.这些已经存在于Python,Java和Node.js.

The main example of doing this is ustack helpers, which convey from a VM to DTrace how to translate stack frames into human-readable frames. These have existed for Python, Java, and Node.js.

这是一个"hello world" ustack助手: https://github.com/davepacheco/ustack

Here's a "hello world" ustack helper: https://github.com/davepacheco/ustack

这是Node.js的代码: https://github.com/joyent/node/blob/master/src /v8ustack.d

and here's the one for Node.js: https://github.com/joyent/node/blob/master/src/v8ustack.d

这篇关于是否可以将动态生成的代码通知Mac OS X上的DTrace?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆