<s> import multiprocessing <EOL> import os <EOL> bind = '<STR_LIT>' <EOL> workers = multiprocessing . cpu_count ( ) + <NUM_LIT:1> <EOL> backlog = <NUM_LIT> <EOL> worker_class = '<STR_LIT>' <EOL> worker_connections = <NUM_LIT:1000> <EOL> timeout = <NUM_LIT> <EOL> limit_request_line = <NUM_LIT> <EOL> limit_request_fields = <NUM_LIT:100> <EOL> limit_request_field_size = <NUM_LIT> <EOL> debug = False <EOL> pidfile = '<STR_LIT>' <EOL> daemon = False <EOL> user = <NUM_LIT:0> <EOL> group = <NUM_LIT:0> <EOL> loglevel = '<STR_LIT:info>' <EOL> proc_name = '<STR_LIT>' <EOL> profiling_prefix = '<STR_LIT>' <EOL> enable_profiling = False <EOL> if enable_profiling : <EOL> import cProfile <EOL> def post_fork ( server , worker ) : <EOL> orig_init_process_ = worker . init_process <EOL> def profiling_init_process ( self ) : <EOL> orig_init_process = orig_init_process_ <EOL> ofile = '<STR_LIT>' % ( profiling_prefix , os . getpid ( ) ) <EOL> print '<STR_LIT>' % ( worker , ofile ) <EOL> cProfile . runctx ( '<STR_LIT>' , globals ( ) , locals ( ) , ofile ) <EOL> worker . init_process = profiling_init_process . __get__ ( worker ) </s>
