locust 2.47.1.dev49__tar.gz → 2.47.1.dev61__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/PKG-INFO +2 -2
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/README.md +1 -1
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/_version.py +2 -2
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/contrib/fasthttp.py +74 -10
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/main.py +2 -2
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/stats.py +24 -18
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/.gitignore +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/LICENSE +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/hatch_build.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/__init__.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/__main__.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/argument_parser.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/clients.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/contrib/__init__.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/contrib/csv_request_logger.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/contrib/dns.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/contrib/milvus.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/contrib/mongodb.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/contrib/mqtt.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/contrib/oai.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/contrib/postgres.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/contrib/qdrant.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/contrib/socketio.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/debug.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/dispatch.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/env.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/event.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/exception.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/html.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/input_events.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/log.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/opentelemetry.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/py.typed +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/rpc/__init__.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/rpc/protocol.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/rpc/zmqrpc.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/runners.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/shape.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/user/__init__.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/user/inspectuser.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/user/markov_taskset.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/user/sequential_taskset.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/user/task.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/user/users.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/user/wait_time.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/util/__init__.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/util/cache.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/util/date.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/util/deprecation.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/util/directory.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/util/exception_handler.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/util/load_locustfile.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/util/rounding.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/util/timespan.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/util/url.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/web.py +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/webui/dist/assets/favicon-dark.png +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/webui/dist/assets/favicon-light.png +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/webui/dist/assets/graphs-dark.png +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/webui/dist/assets/graphs-light.png +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/webui/dist/assets/src-Cl6CiemE.js +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/webui/dist/assets/terminal.gif +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/webui/dist/assets/testruns-dark.png +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/webui/dist/assets/testruns-light.png +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/webui/dist/auth.html +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/webui/dist/index.html +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/locust/webui/dist/report.html +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/pyproject.toml +0 -0
- {locust-2.47.1.dev49 → locust-2.47.1.dev61}/pytest_locust/plugin.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: locust
|
|
3
|
-
Version: 2.47.1.
|
|
3
|
+
Version: 2.47.1.dev61
|
|
4
4
|
Summary: Developer-friendly load testing framework
|
|
5
5
|
Project-URL: Homepage, https://locust.cloud/
|
|
6
6
|
Project-URL: Repository, https://github.com/locustio/locust
|
|
@@ -142,7 +142,7 @@ Locust's code base is intentionally kept small and doesn't solve everything out
|
|
|
142
142
|
|
|
143
143
|
* [Send real time reporting data to TimescaleDB and visualize it in Grafana](https://github.com/SvenskaSpel/locust-plugins/blob/master/locust_plugins/dashboards/README.md)
|
|
144
144
|
* [Wrap calls to handle the peculiarities of your REST API](https://github.com/SvenskaSpel/locust-plugins/blob/8af21862d8129a5c3b17559677fe92192e312d8f/examples/rest_ex.py#L87)
|
|
145
|
-
* [Use a totally custom load shape/profile](https://docs.locust.io/en/
|
|
145
|
+
* [Use a totally custom load shape/profile](https://docs.locust.io/en/stable/configuration.html#custom-load-shape)
|
|
146
146
|
* [...](https://github.com/locustio/locust/wiki/Extensions)
|
|
147
147
|
|
|
148
148
|
## VS Code extension
|
|
@@ -81,7 +81,7 @@ Locust's code base is intentionally kept small and doesn't solve everything out
|
|
|
81
81
|
|
|
82
82
|
* [Send real time reporting data to TimescaleDB and visualize it in Grafana](https://github.com/SvenskaSpel/locust-plugins/blob/master/locust_plugins/dashboards/README.md)
|
|
83
83
|
* [Wrap calls to handle the peculiarities of your REST API](https://github.com/SvenskaSpel/locust-plugins/blob/8af21862d8129a5c3b17559677fe92192e312d8f/examples/rest_ex.py#L87)
|
|
84
|
-
* [Use a totally custom load shape/profile](https://docs.locust.io/en/
|
|
84
|
+
* [Use a totally custom load shape/profile](https://docs.locust.io/en/stable/configuration.html#custom-load-shape)
|
|
85
85
|
* [...](https://github.com/locustio/locust/wiki/Extensions)
|
|
86
86
|
|
|
87
87
|
## VS Code extension
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '2.47.1.
|
|
22
|
-
__version_tuple__ = version_tuple = (2, 47, 1, '
|
|
21
|
+
__version__ = version = '2.47.1.dev61'
|
|
22
|
+
__version_tuple__ = version_tuple = (2, 47, 1, 'dev61')
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -17,7 +17,7 @@ from contextlib import contextmanager
|
|
|
17
17
|
from http.cookiejar import CookieJar
|
|
18
18
|
from ssl import SSLError
|
|
19
19
|
from typing import TYPE_CHECKING
|
|
20
|
-
from urllib.parse import unquote, urlparse, urlunparse
|
|
20
|
+
from urllib.parse import unquote, urlencode, urlparse, urlunparse
|
|
21
21
|
|
|
22
22
|
import gevent
|
|
23
23
|
from charset_normalizer import detect
|
|
@@ -226,7 +226,8 @@ class FastHttpSession:
|
|
|
226
226
|
request to be marked as a fail based on the content of the response, even if the response
|
|
227
227
|
code is ok (2xx). The opposite also works, one can use catch_response to catch a request
|
|
228
228
|
and then mark it as successful even if the response code was not (i.e. 500 or 404).
|
|
229
|
-
:param data: (optional) String/bytes to send in the body of the request
|
|
229
|
+
:param data: (optional) String/bytes to send in the body of the request, or a dict to send
|
|
230
|
+
as a form. A list value in the dict is sent as one field per item, like HttpSession does.
|
|
230
231
|
:param json: (optional) Json to send in the body of the request.
|
|
231
232
|
Automatically sets Content-Type and Accept headers to "application/json".
|
|
232
233
|
Only used if data is not set.
|
|
@@ -267,6 +268,13 @@ class FastHttpSession:
|
|
|
267
268
|
if "Accept" not in headers and "accept" not in headers:
|
|
268
269
|
headers["Accept"] = "application/json"
|
|
269
270
|
|
|
271
|
+
if isinstance(data, dict) and not kwargs.get("files"):
|
|
272
|
+
# geventhttpclient would send a list value as its repr ("arg=['a', 'b']"), so encode
|
|
273
|
+
# the form here, like requests does: one field per item ("arg=a&arg=b")
|
|
274
|
+
data = urlencode(data, doseq=True)
|
|
275
|
+
if "Content-Type" not in headers and "content-type" not in headers:
|
|
276
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded; charset=utf-8"
|
|
277
|
+
|
|
270
278
|
if not allow_redirects:
|
|
271
279
|
old_redirect_response_codes = self.client.redirect_response_codes
|
|
272
280
|
self.client.redirect_response_codes = frozenset() # type: ignore
|
|
@@ -468,6 +476,46 @@ class FastRequest(CompatRequest):
|
|
|
468
476
|
return self.payload
|
|
469
477
|
|
|
470
478
|
|
|
479
|
+
class _StreamDecompressor:
|
|
480
|
+
"""Decompresses a streamed body chunk by chunk, for the encodings that
|
|
481
|
+
geventhttpclient's ``CompatResponse.content`` decompresses all at once."""
|
|
482
|
+
|
|
483
|
+
def __init__(self, content_encoding: str):
|
|
484
|
+
self._encoding = content_encoding
|
|
485
|
+
self._zlib = zlib.decompressobj(16 + zlib.MAX_WBITS) if content_encoding == "gzip" else None
|
|
486
|
+
self._brotli = None
|
|
487
|
+
if content_encoding == "br":
|
|
488
|
+
import brotli # a geventhttpclient dependency, used the same way for .content
|
|
489
|
+
|
|
490
|
+
self._brotli = brotli.Decompressor()
|
|
491
|
+
self._deflate_start = b""
|
|
492
|
+
|
|
493
|
+
def decompress(self, chunk: bytes) -> bytes:
|
|
494
|
+
if self._brotli is not None:
|
|
495
|
+
return self._brotli.process(chunk)
|
|
496
|
+
if self._encoding == "deflate" and self._zlib is None:
|
|
497
|
+
# "deflate" bodies are zlib-wrapped, or raw deflate from some servers.
|
|
498
|
+
# Tell them apart by the zlib (RFC 1950) header in the first two bytes.
|
|
499
|
+
self._deflate_start += chunk
|
|
500
|
+
if len(self._deflate_start) < 2:
|
|
501
|
+
return b""
|
|
502
|
+
cmf, flg = self._deflate_start[0], self._deflate_start[1]
|
|
503
|
+
wrapped = (cmf & 0x0F) == 8 and ((cmf << 8) | flg) % 31 == 0
|
|
504
|
+
self._zlib = zlib.decompressobj(zlib.MAX_WBITS if wrapped else -zlib.MAX_WBITS)
|
|
505
|
+
chunk, self._deflate_start = self._deflate_start, b""
|
|
506
|
+
if self._zlib is not None:
|
|
507
|
+
return self._zlib.decompress(chunk)
|
|
508
|
+
return chunk
|
|
509
|
+
|
|
510
|
+
def flush(self) -> bytes:
|
|
511
|
+
if self._encoding == "deflate" and self._zlib is None:
|
|
512
|
+
if not self._deflate_start:
|
|
513
|
+
return b""
|
|
514
|
+
self._zlib = zlib.decompressobj(-zlib.MAX_WBITS)
|
|
515
|
+
return self._zlib.decompress(self._deflate_start) + self._zlib.flush()
|
|
516
|
+
return self._zlib.flush() if self._zlib is not None else b""
|
|
517
|
+
|
|
518
|
+
|
|
471
519
|
class FastResponse(CompatResponse):
|
|
472
520
|
headers: Headers | None = None # type: ignore
|
|
473
521
|
"""Dict like object containing the response headers"""
|
|
@@ -541,27 +589,43 @@ class FastResponse(CompatResponse):
|
|
|
541
589
|
:param `decode_content`: Whether to decode the content (from bytes to string)
|
|
542
590
|
|
|
543
591
|
:return: A generator that produces one chunk at a time
|
|
592
|
+
|
|
593
|
+
Like ``requests``, a gzip, deflate or br encoded body is decompressed first.
|
|
594
|
+
The session asks for these encodings by default.
|
|
544
595
|
"""
|
|
545
596
|
if not self._response:
|
|
546
597
|
raise LocustError("Cannot iterate content on a response without _response attribute")
|
|
547
598
|
|
|
599
|
+
try:
|
|
600
|
+
content_encoding = self.headers.getlist("content-encoding")[0].strip().lower()
|
|
601
|
+
except (AttributeError, IndexError):
|
|
602
|
+
content_encoding = "identity"
|
|
603
|
+
decompressor = _StreamDecompressor(content_encoding)
|
|
604
|
+
|
|
605
|
+
def decoded(chunk: bytes) -> str | bytes:
|
|
606
|
+
if decode_content:
|
|
607
|
+
try:
|
|
608
|
+
return chunk.decode("utf-8")
|
|
609
|
+
except UnicodeDecodeError:
|
|
610
|
+
# If decoding fails, preserve the data in byte format.
|
|
611
|
+
pass
|
|
612
|
+
return chunk
|
|
613
|
+
|
|
548
614
|
while True:
|
|
549
615
|
try:
|
|
550
616
|
chunk = self._response.read(chunk_size)
|
|
551
617
|
if not chunk:
|
|
552
618
|
break
|
|
553
619
|
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
except UnicodeDecodeError:
|
|
558
|
-
# If decoding fails, preserve the data in byte format.
|
|
559
|
-
pass
|
|
560
|
-
|
|
561
|
-
yield chunk
|
|
620
|
+
chunk = decompressor.decompress(chunk)
|
|
621
|
+
if chunk:
|
|
622
|
+
yield decoded(chunk)
|
|
562
623
|
except (HTTPConnectionClosed, ConnectionError):
|
|
563
624
|
break
|
|
564
625
|
|
|
626
|
+
if tail := decompressor.flush():
|
|
627
|
+
yield decoded(tail)
|
|
628
|
+
|
|
565
629
|
@property
|
|
566
630
|
def status_code(self) -> int:
|
|
567
631
|
"""
|
|
@@ -45,7 +45,7 @@ if TYPE_CHECKING:
|
|
|
45
45
|
version = locust.__version__
|
|
46
46
|
|
|
47
47
|
# Options to ignore when using a custom shape class without `use_common_options=True`
|
|
48
|
-
# See: https://docs.locust.io/en/stable/
|
|
48
|
+
# See: https://docs.locust.io/en/stable/configuration.html#use-common-options
|
|
49
49
|
COMMON_OPTIONS = {
|
|
50
50
|
"num_users": "users",
|
|
51
51
|
"spawn_rate": "spawn-rate",
|
|
@@ -386,7 +386,7 @@ See https://github.com/locustio/locust/wiki/Installation#increasing-maximum-numb
|
|
|
386
386
|
):
|
|
387
387
|
logger.warning(
|
|
388
388
|
"--run-time, --users or --spawn-rate have no impact on LoadShapes unless the shape class explicitly reads them. "
|
|
389
|
-
"See: docs.locust.io/en/stable/
|
|
389
|
+
"See: docs.locust.io/en/stable/configuration.html#use-common-options"
|
|
390
390
|
)
|
|
391
391
|
ignored = [f"--{arg}" for opt, arg in COMMON_OPTIONS.items() if getattr(options, opt, None)]
|
|
392
392
|
logger.warning(f"The following option(s) will be ignored: {', '.join(ignored)}")
|
|
@@ -148,10 +148,9 @@ def get_readable_percentiles(percentile_list: list[float]) -> list[str]:
|
|
|
148
148
|
:param percentile_list: The list of percentiles in range 0-1
|
|
149
149
|
:return: The list of string representation for each percentile in 0%-100% view
|
|
150
150
|
"""
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
]
|
|
151
|
+
# round before checking for a whole number, since e.g. 0.55 * 100 is 55.00000000000001
|
|
152
|
+
rounded_percentiles = [round(100 * percentile, 6) for percentile in percentile_list]
|
|
153
|
+
return [f"{int(percentile) if percentile.is_integer() else percentile}%" for percentile in rounded_percentiles]
|
|
155
154
|
|
|
156
155
|
|
|
157
156
|
def calculate_response_time_percentile(response_times: dict[int, int], num_requests: int, percent: float) -> int:
|
|
@@ -1144,7 +1143,7 @@ class StatsCSVFileWriter(StatsCSV):
|
|
|
1144
1143
|
|
|
1145
1144
|
# Write header row for all files and save position for non-append files
|
|
1146
1145
|
self.requests_csv_writer.writerow(self.requests_csv_columns)
|
|
1147
|
-
requests_csv_data_start = self.requests_csv_filehandle.tell()
|
|
1146
|
+
self.requests_csv_data_start = self.requests_csv_filehandle.tell()
|
|
1148
1147
|
|
|
1149
1148
|
self.stats_history_csv_writer.writerow(self.stats_history_csv_columns)
|
|
1150
1149
|
|
|
@@ -1160,19 +1159,7 @@ class StatsCSVFileWriter(StatsCSV):
|
|
|
1160
1159
|
while True:
|
|
1161
1160
|
now = time.time()
|
|
1162
1161
|
|
|
1163
|
-
self.
|
|
1164
|
-
self._requests_data_rows(self.requests_csv_writer)
|
|
1165
|
-
self.requests_csv_filehandle.truncate()
|
|
1166
|
-
|
|
1167
|
-
self._stats_history_data_rows(self.stats_history_csv_writer, now)
|
|
1168
|
-
|
|
1169
|
-
self.failures_csv_filehandle.seek(self.failures_csv_data_start)
|
|
1170
|
-
self._failures_data_rows(self.failures_csv_writer)
|
|
1171
|
-
self.failures_csv_filehandle.truncate()
|
|
1172
|
-
|
|
1173
|
-
self.exceptions_csv_filehandle.seek(self.exceptions_csv_data_start)
|
|
1174
|
-
self._exceptions_data_rows(self.exceptions_csv_writer)
|
|
1175
|
-
self.exceptions_csv_filehandle.truncate()
|
|
1162
|
+
self._write_data_rows(now)
|
|
1176
1163
|
|
|
1177
1164
|
if now - last_flush_time > CSV_STATS_FLUSH_INTERVAL_SEC:
|
|
1178
1165
|
self.requests_flush()
|
|
@@ -1185,6 +1172,22 @@ class StatsCSVFileWriter(StatsCSV):
|
|
|
1185
1172
|
except KeyboardInterrupt as e:
|
|
1186
1173
|
logger.debug(e, exc_info=True)
|
|
1187
1174
|
|
|
1175
|
+
def _write_data_rows(self, now: float, history: bool = True) -> None:
|
|
1176
|
+
self.requests_csv_filehandle.seek(self.requests_csv_data_start)
|
|
1177
|
+
self._requests_data_rows(self.requests_csv_writer)
|
|
1178
|
+
self.requests_csv_filehandle.truncate()
|
|
1179
|
+
|
|
1180
|
+
if history:
|
|
1181
|
+
self._stats_history_data_rows(self.stats_history_csv_writer, now)
|
|
1182
|
+
|
|
1183
|
+
self.failures_csv_filehandle.seek(self.failures_csv_data_start)
|
|
1184
|
+
self._failures_data_rows(self.failures_csv_writer)
|
|
1185
|
+
self.failures_csv_filehandle.truncate()
|
|
1186
|
+
|
|
1187
|
+
self.exceptions_csv_filehandle.seek(self.exceptions_csv_data_start)
|
|
1188
|
+
self._exceptions_data_rows(self.exceptions_csv_writer)
|
|
1189
|
+
self.exceptions_csv_filehandle.truncate()
|
|
1190
|
+
|
|
1188
1191
|
def _stats_history_data_rows(self, csv_writer: CSVWriter, now: float) -> None:
|
|
1189
1192
|
"""
|
|
1190
1193
|
Write CSV rows with the *current* stats. By default, only includes the
|
|
@@ -1237,6 +1240,9 @@ class StatsCSVFileWriter(StatsCSV):
|
|
|
1237
1240
|
self.exceptions_csv_filehandle.flush()
|
|
1238
1241
|
|
|
1239
1242
|
def close_files(self) -> None:
|
|
1243
|
+
# Requests made since the last interval would otherwise be missing from the totals
|
|
1244
|
+
if hasattr(self, "requests_csv_data_start"):
|
|
1245
|
+
self._write_data_rows(time.time(), history=False)
|
|
1240
1246
|
self.requests_csv_filehandle.close()
|
|
1241
1247
|
self.stats_history_csv_filehandle.close()
|
|
1242
1248
|
self.failures_csv_filehandle.close()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|