@name 获取heapdump 文件列表 @author lkq<2021-09-24> @return list
(self, get)
| 4396 | return ret |
| 4397 | |
| 4398 | def get_project_dump(self, get): |
| 4399 | ''' |
| 4400 | @name 获取heapdump 文件列表 |
| 4401 | @author lkq<2021-09-24> |
| 4402 | @return list |
| 4403 | ''' |
| 4404 | ret = [] |
| 4405 | project_find = self.get_project_find(get.project_name) |
| 4406 | if not project_find: |
| 4407 | return ret |
| 4408 | if not project_find['project_config']['java_type'] == 'springboot': return ret |
| 4409 | if not os.path.exists(self._springoot_dump + '/' + get.project_name + '.json'): return ret |
| 4410 | try: |
| 4411 | ret = json.loads(public.ReadFile(self._springoot_dump + '/' + get.project_name + '.json')) |
| 4412 | return ret |
| 4413 | except: |
| 4414 | public.WriteFile(public.ReadFile(self._springoot_dump + '/' + get.project_name + '.json'), []) |
| 4415 | return ret |
| 4416 | |
| 4417 | def del_project_dump(self, get): |
| 4418 | ''' |
nothing calls this directly
no test coverage detected