2000-03-11 20:17:12 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
|
|
# profiling test
|
2000-03-22 01:15:55 +00:00
|
|
|
import sys
|
|
|
|
|
sys.path.append("/home/calvin/projects/linkchecker/")
|
2000-03-11 20:17:12 +00:00
|
|
|
import linkcheck,re,profile,pstats
|
2000-03-22 01:15:55 +00:00
|
|
|
url="http://treasure.calvinsplayground.de/~calvin/"
|
2000-03-11 20:17:12 +00:00
|
|
|
config = linkcheck.Config.Configuration()
|
2000-03-22 01:15:55 +00:00
|
|
|
config["verbose"] = 1
|
|
|
|
|
config.appendUrl(linkcheck.UrlData.GetUrlDataFrom(url, 0))
|
2000-03-11 20:17:12 +00:00
|
|
|
profile.run("linkcheck.checkUrls(config)", "test.prof")
|
|
|
|
|
p = pstats.Stats("test.prof")
|
|
|
|
|
p.strip_dirs().sort_stats("time").print_stats(10)
|