Searched refs:handle_name (Results 1 – 2 of 2) sorted by relevance
175 std::string handle_name = arg_name + "_h"; in GenerateProfilerForHandleVariable() local176 out << "auto " << handle_name << " = " << arg_value in GenerateProfilerForHandleVariable()178 out << "if (" << handle_name << ") {\n"; in GenerateProfilerForHandleVariable()180 out << arg_name << "->mutable_handle_value()->set_version(" << handle_name in GenerateProfilerForHandleVariable()182 out << arg_name << "->mutable_handle_value()->set_num_ints(" << handle_name in GenerateProfilerForHandleVariable()184 out << arg_name << "->mutable_handle_value()->set_num_fds(" << handle_name in GenerateProfilerForHandleVariable()186 out << "for (int i = 0; i < " << handle_name << "->numInts + " << handle_name in GenerateProfilerForHandleVariable()189 out << "if(i < " << handle_name << "->numFds) {\n"; in GenerateProfilerForHandleVariable()194 out << "string procPath = \"/proc/self/fd/\" + to_string(" << handle_name in GenerateProfilerForHandleVariable()207 out << "fstat(" << handle_name << "->data[i], &statbuf);\n"; in GenerateProfilerForHandleVariable()[all …]
245 handle_name=None): argument268 if handle_name is not None and handle_name in self._registered_mirrors:288 if handle_name is None:289 handle_name = "handle_id_" + str(mirror._handle_id)290 self._registered_mirrors[handle_name] = mirror