Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use compare report function. #165

Closed
hansyuanyang opened this issue May 30, 2023 · 0 comments
Closed

Can't use compare report function. #165

hansyuanyang opened this issue May 30, 2023 · 0 comments

Comments

@hansyuanyang
Copy link

hansyuanyang commented May 30, 2023

Hi, thanks for making this amazing tool. There's a ZeroDivisionError when I use compare function:

`192.168.26.12 - - [30/May/2023 10:56:26] "GET /apm/log?scene=apm_2023-05-30-10-22-11&target=battery&platform=iOS&=1685415386190 HTTP/1.1" 200 -
192.168.26.12 - - [30/May/2023 10:56:26] "GET /apm/log?scene=apm_2023-05-30-10-22-11&target=flow&platform=iOS&
=1685415386191 HTTP/1.1" 200 -

[2023-05-30 10:56:33,272] ERROR in app: Exception on /compare_analysis [GET]
Traceback (most recent call last):
File "E:\MyWorkFolder\DWM\Profiling\SoloX\SoloX_evn01\lib\site-packages\flask\app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "E:\MyWorkFolder\DWM\Profiling\SoloX\SoloX_evn01\lib\site-packages\flask\app.py", line 1519, in full_dispatch_request
rv = self.handle_user_exception(e)
File "E:\MyWorkFolder\DWM\Profiling\SoloX\SoloX_evn01\lib\site-packages\flask\app.py", line 1517, in full_dispatch_request
rv = self.dispatch_request()
File "E:\MyWorkFolder\DWM\Profiling\SoloX\SoloX_evn01\lib\site-packages\flask\app.py", line 1503, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "E:\MyWorkFolder\DWM\Profiling\SoloX\SoloX_evn01\lib\site-packages\solox\view\pages.py", line 176, in analysis_compare
apm_data1 = f._setiOSPerfs(scene1)
File "E:\MyWorkFolder\DWM\Profiling\SoloX\SoloX_evn01\lib\site-packages\solox\public\common.py", line 555, in _setiOSPerfs
cpuAppRate = f'{round(sum(cpuAppData) / len(cpuAppData), 2)}%'
ZeroDivisionError: division by zero

192.168.26.12 - - [30/May/2023 10:56:33] "GET /compare_analysis?app=com.nexon.dwm.inhouse&scene1=apm_2023-05-30-10-22-11&scene2=apm_2023-05-30-10-47-44&platform=iOS&lan=None HTTP/1.1" 500 -
192.168.26.12 - - [30/May/2023 10:56:33] "GET /static/css/tabler.min.css HTTP/1.1" 304 -
192.168.26.12 - - [30/May/2023 10:56:33] "GET /static/css/select2-bootstrap-5-theme.min.css HTTP/1.1" 304 -`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants