Inotify-tools中还有一个工具叫inotifywatch,它会先监听文件系统的消息事件,然后统计每个被监听文件或文件夹的消息事件,之后输出统计信息。
The other tool which is part of inotify-tools is inotifywatch. It listens for filesystem events and outputs a summary count of the events received on each file or directory.
除了优化执行时间外,还可得到单独执行规则所无法得到的附加统计及输出视图。
In addition to the improved execution time, you will get additional statistics and output views which are not available for single rules.
通常,这涉及到统计输入、输出、查询、文件和接口的数量,然后为各自制定一个复杂性系数。
Typically, this involves counting the number of inputs, outputs, queries, files, and interfaces, then assigning a complexity coefficient to each of them.
应用推荐