mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-25 02:10:24 +00:00
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@41 e7d03fd6-7b0d-0410-9947-9c21f3af8025
13 lines
451 B
Python
Executable file
13 lines
451 B
Python
Executable file
#!/usr/bin/env python
|
|
|
|
# profiling test
|
|
import sys
|
|
sys.path.append("/home/calvin/projects/linkchecker/")
|
|
import linkcheck,re,profile,pstats
|
|
url="http://treasure.calvinsplayground.de/~calvin/"
|
|
config = linkcheck.Config.Configuration()
|
|
config["verbose"] = 1
|
|
config.appendUrl(linkcheck.UrlData.GetUrlDataFrom(url, 0))
|
|
profile.run("linkcheck.checkUrls(config)", "test.prof")
|
|
p = pstats.Stats("test.prof")
|
|
p.strip_dirs().sort_stats("time").print_stats(10)
|