voorhoede / lighthouse-security

Runs the default Google Lighthouse tests with additional security tests
https://github.com/voorhoede/lighthouse-security#readme
Apache License 2.0
198 stars 13 forks source link

Report includes traces - makes report over 12mb #81

Open seongbae opened 6 years ago

seongbae commented 6 years ago

Hi,

When I use lighthouse-security, it includes traces and the JSON reports come out over 12mb. According to the lighthouse documentation, you'd include traces by using the "--save-assets" flag. I didn't use that flag when using lighthouse-security but the traces are included in the report. Without the traces, same report comes out to be only 600kb. I process JSON file and store the content into mysql database - so if it comes out 12mb, it takes too much time to process.

Here's an example of what gets included in the report and takes up majority of 12mb:

{ "pid": 2070, "tid": 1, "ts": 77739065939, "ph": "X", "cat": "toplevel", "name": "MessageLoop::RunTask", "args": { "src_file": "../../third_party/WebKit/Source/platform/scheduler/base/thread_controller_impl.cc", "src_func": "ScheduleWork" }, "dur": 1812, "tdur": 1630, "tts": 5508532 }, { "pid": 2070, "tid": 1, "ts": 77739065959, "ph": "X", "cat": "toplevel", "name": "ThreadControllerImpl::DoWork", "args": { "src_file": "../../mojo/public/cpp/system/simple_watcher.cc", "src_func": "Notify" }, "dur": 44, "tdur": 44, "tts": 5508552 }, { "pid": 2070, "tid": 1, "ts": 77739066009, "ph": "X", "cat": "toplevel", "name": "ThreadControllerImpl::DoWork", "args": { "src_file": "../../mojo/public/cpp/system/simple_watcher.cc", "src_func": "Notify" }, "dur": 1739, "tdur": 1557, "tts": 5508601 },

Thank you.

Seong