但是,若是应用程序想要跟踪其他数据(比如某些变量的值)或者甚至试图通过记录特定的函数调用过程来剖析代码,那么情况又是如何呢?
However, what if the application wanted to track other data such as the value of certain variables or even attempt to profile the code by recording the duration of a particular function invocation?
跟踪调用各个函数的次序。
该方法用于在简单的SQL选择语句期间为调用的vti目的函数实现一个跟踪功能。
This method is used to implement a trace facility for the VTI purpose functions invoked during a simple select SQL statement.
跟踪钩子可以应用于任何函数的入口或出口(当前对于系统调用只支持出口探测点)。
Trace hooks can be applied at the entry or exit of any function (currently exit probe point is supported for system calls only).
如果用户需要跟踪某个用户函数中的malloc和free调用,那么可以按以下方式修改malloc . d脚本。
If the user needs to track malloc and free calls in a particular user function, the malloc.d script can be modified as shown below.
在开始跟踪相册应用程序的历史记录之前,只需要在页面加载过程中调用x_get _ table函数即可。
Before we began tracking history in the photo gallery application, we simply needed to call the x_get_table function during the onload event for the page.
在分析跟踪文件中的调用链时,会构建一个连通矩阵,用来表示哪个函数调用了其他哪些函数。
As the call chain is parsed from the trace file, a connectivity matrix is built that identifies which functions call which other functions.
如果在许多地方调用了一个函数,可以使用堆栈跟踪检查调用序列。
If a function is called from many places, use the stack backtrace to determine the specific calling sequence.
请注意,在调用网络accept函数的过程中停止了跟踪操作。
Notice that the trace has stopped in the middle of a call to the network accept function.
当跟踪被启用后,Xdebug将记录所有函数调用,包括每个函数的参数和返回值。
When tracing is enabled, Xdebug logs each function call, including each function's arguments and return value.
假如开发者忘记调用XyzRelease函数,那时资源就会泄露,因为编译器不能跟踪一个对象实例的生命周期。
If the developer forgets to call XyzRelease, then resources are leaked because the compiler doesn't help to track the lifetime of an object instance.
使用SDK的预测跟踪,确保你将一个精确的时间参数送给函数调用。
Use the SDK's predictive tracking, making sure you feed in an accurate time parameter into the function call.
其中一个函数在每次执行想要跟踪的函数时都会调用;而另外一个函数则在每次退出想要跟踪的函数时调用(参见清单1)。
One function is dispatched whenever instrumented functions are called; the other is invoked when instrumented functions exit (see Listing 1).
创建调用跟踪报告,其中列出您的应用程序函数每个入口点和出口点的计时信息,以及您的函数对其他函数的每次调用的计时信息。
Create a call trace report that lists timing information for each entry and exit point to your application's functions and each call to other functions by your function.
创建调用跟踪报告,其中列出您的应用程序函数每个入口点和出口点的计时信息,以及您的函数对其他函数的每次调用的计时信息。
Create a call trace report that lists timing information for each entry and exit point to your application's functions and each call to other functions by your function.
应用推荐