facebook / memlab

A framework for finding JavaScript memory leaks and analyzing heap snapshots
https://facebook.github.io/memlab/
MIT License
4.35k stars 118 forks source link

Not Headless and more examples #36

Closed QAInsights closed 1 year ago

QAInsights commented 1 year ago

As a performance, I do not have experience w/ Puppeteer. But I would like to heavily use to troubleshoot the client-side performance using Memlab.

  1. How do we run with non-headless mode? If I try with headless: false (from Puppeteer doc), it is not working.
  2. It would be great, if we need more examples on the automation front.

Thanks.

JacksonGL commented 1 year ago

@QAInsights For MemLab CLI, use --headful to run memlab in headful mode, for example:

memlab run --scenario <scenario file> --headful

Please check out the documentation for more examples: https://facebookincubator.github.io/memlab/docs/intro

QAInsights commented 1 year ago

Thanks @JacksonGL Yes, I already went throught the examples. I am looking for automation scripts e.g. login, extracting token/sessions etc.

JacksonGL commented 1 year ago

@QAInsights The automation part is done by invoking methods in page object from Puppeteer, there are plenty of examples online for automation with Puppeteer.

Puppeteer documentation: https://pptr.dev/