Lines Matching refs:data_name
66 def __init__(self, data_name, name_filter):
70 data_name: the name of the file containing the counters.
73 self.data_name = data_name
103 if not os.path.exists(self.data_name):
104 maps_name = "/proc/%s/maps" % self.data_name
106 print("\"%s\" is neither a counter file nor a PID." % self.data_name)
110 self.data_name = None
113 self.data_name = m.group(0)
115 if self.data_name is None:
116 print("Can't find counter file in maps for PID %s." % self.data_name)
120 data_file = open(self.data_name, "r")
129 print("File %s is not stats data." % self.data_name)