The test program calls each method repeatedly with a large loop count, averaging the time measurements over several calls.
测试程序重复调用每种方法,使用一个大循环数,从而平均多次调用的时间衡量结果。
When the threshold count for a method reaches zero (0) the method becomes eligible for compilation into native code by JIT.
当一个方法的上限计数器达到零(0)时,就可以使用JIT将这个方法编译成本地代码了。
For each virtual method, count how many arguments it has, name the result n, and define it using MOCK_METHODn, whose arguments are the name and type of the method.
对于每个虚方法,计算它的参数个数、名字和结果n,然后使用MOCK_METHODn进行定义,其参数就是方法的名字和类型。
应用推荐