import audfprint
import cProfile
import pstats

argv = ["audfprint", "match", "-d", "tmp.fpdb", "--density", "200", "query.mp3", "query2.mp3"]

cProfile.run('audfprint.main(argv)', 'fpmstats')

p = pstats.Stats('fpmstats')

p.sort_stats('time')
p.print_stats(10)

import audfprint
import cProfile
import pstats

argv = ["audfprint", "match", "-d", "fpdbase.pklz", "--density", "200", "query.mp3"]

cProfile.run('audfprint.main(argv)', 'fpmstats')

p = pstats.Stats('fpmstats')

p.sort_stats('time')
p.print_stats(10)

Update profile for local data.
Update profile for local data.

  import audfprint
  import cProfile
  import pstats
  
- argv = ["audfprint", "match", "-d", "tmp.fpdb", "--density", "200", "query.mp3", "query2.mp3"]
+ argv = ["audfprint", "match", "-d", "fpdbase.pklz", "--density", "200", "query.mp3"]
  
  cProfile.run('audfprint.main(argv)', 'fpmstats')
  
  p = pstats.Stats('fpmstats')
  
  p.sort_stats('time')
  p.print_stats(10)
  
Update profile for local data.
## Code Before:
import audfprint
import cProfile
import pstats

argv = ["audfprint", "match", "-d", "tmp.fpdb", "--density", "200", "query.mp3", "query2.mp3"]

cProfile.run('audfprint.main(argv)', 'fpmstats')

p = pstats.Stats('fpmstats')

p.sort_stats('time')
p.print_stats(10)

## Instruction:
Update profile for local data.
## Code After:
import audfprint
import cProfile
import pstats

argv = ["audfprint", "match", "-d", "fpdbase.pklz", "--density", "200", "query.mp3"]

cProfile.run('audfprint.main(argv)', 'fpmstats')

p = pstats.Stats('fpmstats')

p.sort_stats('time')
p.print_stats(10)
