windows - 我如何访问总的“用户模式堆栈跟踪数据库(ust)"? [英] windows - How can i access total "user mode stack trace database(ust)"?

查看:48
本文介绍了windows - 我如何访问总的“用户模式堆栈跟踪数据库(ust)"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何访问由gflags.exe"创建的全部用户模式堆栈跟踪数据库",如 sql DB?否则,你能告诉我一些关于 ust DB 的 API 文档吗?

How can i access the total "user mode stack trace database" created by "gflags.exe" like sql DB? Otherwise, could you tell me some API docs about ust DB?

我使用gflags.exe"调整了 +ust 标志,因此我可以获得创建内存块的堆栈跟踪.

I truned on the +ust flag using "gflags.exe", So i can get stack trace creating a memory block.

但我想通过调用堆栈(如umdh或leakdiag)编译统计内存分配组,仅供研究.我想有一些查询 ust DB 的接口,但我找不到..有什么方法可以查询或枚举 ust DB?

But i want to compile statistics memory allocation group by callstack (like umdh or leakdiag) just for study. I guess there is some interface for query the ust DB, but i can't find.. Is there some way to query to or enumerate the ust DB?

推荐答案

使用 UMDH 作为 API.UMDH 使用文本文件来存储其数据:

Use UMDH as the API. UMDH uses text files to store its data:

umdh -pn:Program.exe -f:before.txt
// do something
umdh -pn:Program.exe -f:after.txt

您甚至可以重复这些步骤来获取更多文本文件.然后,您有 n 个文本文件(这是您的数据库"),您可以对其进行解析(您必须使用某种编程语言(如 C# 或 Python)编写查询)并进行分析.

And you can even repeat these steps to get more text files. You then have n text files (that's your "database") that you can parse (you'll have to write the query in some programming language like C# or Python) and analyze.

有一些工具已经可以这样工作了.在我以前的公司中,我们使用了 UMDHGrapher(未公开提供)并且有 UmdhVizUmdh Visualize 都是这样做的.

There are tools out there which already work like this. In my former company we used UMDHGrapher (not publically available) and there is UmdhViz or Umdh Visualize which all do it that way.

这篇关于windows - 我如何访问总的“用户模式堆栈跟踪数据库(ust)"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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