a3883f16c07fec39a0d7431a16cf018f67723f1d,w3af/core/controllers/profiling/scan_log_analysis.py,,show_queue_size,#Any#,253
Before Change
fig.set_x_limits(min_=0, max_=None)
fig.set_y_limits(min_=0, max_=None)
fig.plot(xrange(len(crawl_queue_sizes)),
crawl_queue_sizes,
label="Crawl")
After Change
auditor_queue_timestamps = []
crawl_queue_sizes = []
crawl_queue_timestamps = []
for line in scan:
match = GREP_DISK_DICT.search(line)
if match:
grep_queue_sizes.append(int(match.group(1)))
grep_queue_timestamps.append(get_line_epoch(line))
match = AUDITOR_DISK_DICT.search(line)
if match:
auditor_queue_sizes.append(int(match.group(1)))
auditor_queue_timestamps.append(get_line_epoch(line))
match = CRAWLINFRA_DISK_DICT.search(line)
if match:
crawl_queue_sizes.append(int(match.group(1)))
crawl_queue_timestamps.append(get_line_epoch(line))
// Get the last timestamp to use as max in the graphs
last_timestamp = get_line_epoch(line)
print("Consumer queue sizes")
print("")
fig = plotille.Figure()
fig.width = 90
fig.height = 20
fig.y_label = "Items in Audit queue"
fig.x_label = "Time"
fig.color_mode = "byte"
fig.set_x_limits(min_=auditor_queue_timestamps[0], max_=last_timestamp)
fig.set_y_limits(min_=0, max_=None)
fig.plot(auditor_queue_timestamps,
auditor_queue_sizes,
label="Audit")
print(fig.show())
print("")
print("")
fig = plotille.Figure()
fig.width = 90
fig.height = 20
fig.y_label = "Items in CrawlInfra queue"
fig.x_label = "Time"
fig.color_mode = "byte"
fig.set_x_limits(min_=crawl_queue_timestamps[0], max_=last_timestamp)
fig.set_y_limits(min_=0, max_=None)
fig.plot(crawl_queue_timestamps,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: andresriancho/w3af
Commit Name: a3883f16c07fec39a0d7431a16cf018f67723f1d
Time: 2018-01-10
Author: andres.riancho@gmail.com
File Name: w3af/core/controllers/profiling/scan_log_analysis.py
Class Name:
Method Name: show_queue_size
Project Name: andresriancho/w3af
Commit Name: a3883f16c07fec39a0d7431a16cf018f67723f1d
Time: 2018-01-10
Author: andres.riancho@gmail.com
File Name: w3af/core/controllers/profiling/scan_log_analysis.py
Class Name:
Method Name: show_queue_size
Project Name: andresriancho/w3af
Commit Name: a3883f16c07fec39a0d7431a16cf018f67723f1d
Time: 2018-01-10
Author: andres.riancho@gmail.com
File Name: w3af/core/controllers/profiling/scan_log_analysis.py
Class Name:
Method Name: show_timeout
Project Name: andresriancho/w3af
Commit Name: a3883f16c07fec39a0d7431a16cf018f67723f1d
Time: 2018-01-10
Author: andres.riancho@gmail.com
File Name: w3af/core/controllers/profiling/scan_log_analysis.py
Class Name:
Method Name: show_worker_pool_size