For example, if you were instrumenting a file I/O function, you might add the name of the file being written to the probe for that function.
例如,如果要检查一个文件 I/O 函数,可以把正在写的文件的名称添加到函数的探测中。
It's necessary to organize imports by selecting Ctrl + Shift + o to add missing imports.
这时,整理导入是非常必要的,通过选择[ctrl] + [Shift] + [o]来添加缺少的导入。
The time to do this in the regular way scales as o (n) (if it takes 1ms to add 100 integers, it takes roughly 2ms to add 200 integers, and so on).
用普通方法实现这种操作所需要的时间是O (N)(如果对100个整数进行求和需要1 ms,那么对200个整数进行求和就需要2 ms,依此类推)。
应用推荐