add support to monitor specified process's mem,cpu

sometimes,we do not care all the process or system's memory,cpu , but just the ones which we are interest in. the ProcessMetrics support this.
so does the FileMetrics 
What is the meaning of the flag argument?
Is this a method to find the pid of a process, searching by process name?