import django

django.setup()

from busshaming.data_processing import process_realtime_dumps


if __name__ == '__main__':
    process_realtime_dumps.process_next(10)

import django
#import cProfile

django.setup()

from busshaming.data_processing import process_realtime_dumps


if __name__ == '__main__':
    #cProfile.run('process_realtime_dumps.process_next(10)', filename='output.txt')
    process_realtime_dumps.process_next(10)

Add profiling code (commented) for profiling the realtime processing.
Add profiling code (commented) for profiling the realtime processing.

  import django
+ #import cProfile
  
  django.setup()
  
  from busshaming.data_processing import process_realtime_dumps
  
  
  if __name__ == '__main__':
+     #cProfile.run('process_realtime_dumps.process_next(10)', filename='output.txt')
      process_realtime_dumps.process_next(10)
  
Add profiling code (commented) for profiling the realtime processing.
## Code Before:
import django

django.setup()

from busshaming.data_processing import process_realtime_dumps


if __name__ == '__main__':
    process_realtime_dumps.process_next(10)

## Instruction:
Add profiling code (commented) for profiling the realtime processing.
## Code After:
import django
#import cProfile

django.setup()

from busshaming.data_processing import process_realtime_dumps


if __name__ == '__main__':
    #cProfile.run('process_realtime_dumps.process_next(10)', filename='output.txt')
    process_realtime_dumps.process_next(10)
