Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
apachedex
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastien Robin
apachedex
Commits
b9745d6b
Commit
b9745d6b
authored
Apr 07, 2013
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add timing information when loading state files.
parent
278332c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
apachedex/__init__.py
apachedex/__init__.py
+4
-0
No files found.
apachedex/__init__.py
View file @
b9745d6b
...
@@ -947,6 +947,8 @@ def main():
...
@@ -947,6 +947,8 @@ def main():
file_count
=
len
(
infile_list
)
file_count
=
len
(
infile_list
)
per_site
=
{}
per_site
=
{}
for
state_file
in
args
.
state_file
:
for
state_file
in
args
.
state_file
:
print
>>
sys
.
stderr
,
'Loading'
,
state_file
.
name
,
'...'
,
load_start
=
time
.
time
()
state
=
json
.
load
(
state_file
,
encoding
=
'ascii'
)
state
=
json
.
load
(
state_file
,
encoding
=
'ascii'
)
for
url
,
site_state
in
state
:
for
url
,
site_state
in
state
:
if
url
is
None
:
if
url
is
None
:
...
@@ -964,6 +966,8 @@ def main():
...
@@ -964,6 +966,8 @@ def main():
continue
continue
per_site
[
site
]
=
action
.
func
.
fromJSONState
(
site_state
,
per_site
[
site
]
=
action
.
func
.
fromJSONState
(
site_state
,
getDuration
,
action
.
keywords
[
'suffix'
])
getDuration
,
action
.
keywords
[
'suffix'
])
print
>>
sys
.
stderr
,
'done (%s)'
%
timedelta
(
seconds
=
time
.
time
()
-
load_start
)
skip_user_agent
=
list
(
itertools
.
chain
(
*
args
.
skip_user_agent
))
skip_user_agent
=
list
(
itertools
.
chain
(
*
args
.
skip_user_agent
))
malformed_lines
=
0
malformed_lines
=
0
skipped_lines
=
0
skipped_lines
=
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment