Wrapper Module sw.wrapper

Functions

sw.wrapper.main(func, file, **kwargs)[source]

Is called from our wrapped script. Parses any arguments passed to our script from the command line and then starts and manages our pool.

Parameters:
  • func – The function that will be ran continously to simulate load.
  • file – Usually __file__, the name of a script in the directory that log/ will be in.
Returns:

None

sw.wrapper.mainLoop(stdscr, pool)[source]

Takes the pool created previously and just loops around it. Currently it just calls the pool’s think function repeatedly.

Parameters:
  • stdscr – Our screen from curses.
  • pool – Our created child pool in main().
Returns:

None

Table Of Contents

Previous topic

Wrapper

Next topic

Child Pool Module sw.pool

This Page