mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-16 18:41:07 +00:00
11 lines
332 B
Python
11 lines
332 B
Python
|
|
#!/usr/bin/env python
|
||
|
|
|
||
|
|
# profiling test
|
||
|
|
import linkcheck,re,profile,pstats
|
||
|
|
config = linkcheck.Config.Configuration()
|
||
|
|
config.appendUrl(linkcheck.UrlData.GetUrlDataFrom("http://www.yahoo.de/", 0))
|
||
|
|
profile.run("linkcheck.checkUrls(config)", "test.prof")
|
||
|
|
|
||
|
|
p = pstats.Stats("test.prof")
|
||
|
|
p.strip_dirs().sort_stats("time").print_stats(10)
|