MCPcopy Create free account

hub / github.com/locustio/locust / functions

Functions1,982 in github.com/locustio/locust

↓ 3 callersMethodparse_string_output
(self, text)
locust/test/test_stats.py:817
↓ 3 callersMethodquit
(self)
locust/runners.py:909
↓ 3 callersMethodrecv
(self)
locust/rpc/zmqrpc.py:38
↓ 3 callersMethodreset_all
Go through all stats entries and reset them to zero
locust/stats.py:268
↓ 3 callersMethodrest
A wrapper for self.client.request that: * Parses the JSON response to a dict called ``js`` in the response object. Marks the request
locust/contrib/fasthttp.py:453
↓ 3 callersMethodsend_message
Emulates internodal messaging by calling registered listeners :param msg_type: The type of the message to emulate sending :p
locust/runners.py:568
↓ 3 callersMethodsetUp
(self)
locust/test/test_web.py:45
↓ 3 callersFunctionsort_stats
(stats: dict[Any, S])
locust/stats.py:956
↓ 3 callersMethodstop
(self, send_stop_to_client: bool = True)
locust/runners.py:874
↓ 3 callersFunctiontag
Decorator for tagging tasks and TaskSets with the given tag name. You can then limit the test to only execute tasks that are tagged with any
locust/user/task.py:105
↓ 3 callersMethodtearDown
(self)
locust/test/test_web.py:57
↓ 3 callersMethodto_string
Return the stats as a string suitable for console output. If current is True, it'll show the RPS and failure rate for the last 10 sec
locust/stats.py:566
↓ 3 callersFunctiontransformKeys
( object: ObjectInterface, mutation: MutationFunction, )
locust/webui/src/utils/string.ts:20
↓ 3 callersMethodunserialize
Return the unserialzed version of the specified dict
locust/stats.py:546
↓ 3 callersMethodwait
Make the running user sleep for a duration defined by the Locust.wait_time function (or TaskSet.wait_time function if it's been defin
locust/user/task.py:452
↓ 2 callersMethod__init__
(self, base_url, request_event, user, *args, pool_manager: PoolManager | None = None, **kwargs)
locust/clients.py:98
↓ 2 callersMethod__init__
(self, environment)
locust/contrib/fasthttp.py:424
↓ 2 callersFunction_calc_distribution
(user_classes, num_users)
locust/user/inspectuser.py:29
↓ 2 callersFunction_construct_basic_auth_str
Construct Authorization header value to be used in HTTP Basic Auth
locust/contrib/fasthttp.py:92
↓ 2 callersMethod_distribute_users
This function might take some time to complete if the `target_user_count` is a big number. A big number is typically > 50 000. Howeve
locust/dispatch.py:339
↓ 2 callersMethod_exceptions_data_rows
(self, csv_writer: CSVWriter)
locust/stats.py:1093
↓ 2 callersMethod_failures_data_rows
(self, csv_writer: CSVWriter)
locust/stats.py:1076
↓ 2 callersFunction_is_valid_percentile
Validate single percentile value from .stats constants.
locust/stats.py:1256
↓ 2 callersFunction_kl_generator
Generator based on Kullback-Leibler divergence For example, given users A, B with weights 5 and 1 respectively, this algorithm will yield AAA
locust/dispatch.py:26
↓ 2 callersFunction_manual_report
(name)
examples/manual_stats_reporting.py:28
↓ 2 callersMethod_on_connect_cb
( self, client: mqtt.Client, userdata: typing.Any, flags: dict[str, int],
locust/contrib/mqtt.py:282
↓ 2 callersMethod_on_disconnect_cb
( self, client: mqtt.Client, userdata: typing.Any, rc: int | ReasonCode, )
locust/contrib/mqtt.py:234
↓ 2 callersMethod_percentile_fields
(self, stats_entry: StatsEntry, use_current: bool = False)
locust/stats.py:1036
↓ 2 callersMethod_prepare_rebalance
When a rebalance is required because of added and/or removed workers, we compute the desired state as if we started from 0 user. So,
locust/dispatch.py:244
↓ 2 callersMethod_remove_user_classes_with_weight_zero
Remove user classes having a weight of zero.
locust/env.py:255
↓ 2 callersMethod_requests_data_rows
Write requests csv data row, excluding header.
locust/stats.py:1049
↓ 2 callersMethod_send_logs
(self, current_logs)
locust/runners.py:1493
↓ 2 callersMethod_send_stats
(self)
locust/runners.py:1488
↓ 2 callersMethod_sort_workers
(self)
locust/dispatch.py:138
↓ 2 callersMethod_update_shape_class
(self, shape_class_name)
locust/web.py:759
↓ 2 callersMethod_validate_shape_class_instance
(self)
locust/env.py:299
↓ 2 callersMethod_validate_user_class_name_uniqueness
(self)
locust/env.py:290
↓ 2 callersMethod_wait_between_dispatch_iteration_context
(self)
locust/dispatch.py:271
↓ 2 callersFunctionavg
(values: list[float | int])
locust/stats.py:806
↓ 2 callersFunctionbucket_response_time
Round response time to reduce unique histogram keys. Rounds to ~2 significant digits, so that 147 becomes 150, 3432 becomes 3400 and 58760 be
locust/stats.py:124
↓ 2 callersFunctioncalculate_response_time_percentile
Get the response time that a certain number of percent of the requests finished within. Arguments: response_times: A StatsEntry.response
locust/stats.py:161
↓ 2 callersMethodcall
(self, event, data, *args, **kwargs)
locust/test/test_socketio.py:15
↓ 2 callersMethodcheck_stopped
(self)
locust/runners.py:918
↓ 2 callersFunctionclear_all_functools_lru_cache
()
locust/test/util.py:85
↓ 2 callersFunctionconstant_pacing
Returns a function that will track the run time of the tasks, and for each time it's called it will return a wait time that will try to make
locust/user/wait_time.py:35
↓ 2 callersMethodcontext
Adds the returned value (a dict) to the context for :ref:`request event <request_context>`. Override this in your User class to custo
locust/user/users.py:231
↓ 2 callersMethodcpu_log_warning
Called at the end of the test
locust/runners.py:206
↓ 2 callersFunctioncreateTheme
(mode: PaletteMode)
locust/webui/src/styles/theme.ts:3
↓ 2 callersMethodcreate_collection
(self, schema, index_params, **kwargs)
locust/contrib/milvus.py:24
↓ 2 callersMethodcreate_key
(cls, method: str, name: str, error: Exception | str | None)
locust/stats.py:744
↓ 2 callersFunctioncreate_tls_cert
Generate a TLS cert and private key to serve over https
locust/test/util.py:60
↓ 2 callersMethoddelete
Sends a DELETE request
locust/clients.py:326
↓ 2 callersMethoddelete
(self, filter)
locust/contrib/milvus.py:58
↓ 2 callersFunctionformatTimestamp
(unixSeconds: number | null)
locust/webui/src/components/FailuresTable/FailuresTable.tsx:9
↓ 2 callersFunctionformat_duration
(start_time, end_time)
locust/util/date.py:12
↓ 2 callersMethodget
Sends a GET request
locust/clients.py:263
↓ 2 callersFunctionget_abspaths_in
(path, extension=None)
locust/util/directory.py:4
↓ 2 callersMethodget_current_user_count
(self)
locust/dispatch.py:121
↓ 2 callersFunctionget_html_report
( environment, show_download_link=True, theme="", )
locust/html.py:33
↓ 2 callersFunctionget_locustfiles_locally
(options)
locust/argument_parser.py:361
↓ 2 callersFunctionget_tasks_from_base_classes
Function used by both TaskSetMeta and UserMeta for collecting all declared tasks on the TaskSet/User class and all its base classes
locust/user/task.py:144
↓ 2 callersMethodhybrid_search
(self, reqs, ranker, limit, output_fields=None)
locust/contrib/milvus.py:50
↓ 2 callersMethodipv4_only
(self, host, port)
locust/rpc/zmqrpc.py:65
↓ 2 callersFunctionis_markov_task
Determines if a task is a Markov task by checking if it has transitions defined. :param task: The task to check :return: True if the tas
locust/user/markov_taskset.py:36
↓ 2 callersFunctionis_markov_taskset
Determines if a task is a MarkovTaskSet by checking its meta class Defined here to avoid circular imports. :param task: The task to chec
locust/user/task.py:175
↓ 2 callersFunctionis_url
Check if path is an url
locust/util/url.py:4
↓ 2 callersMethodjson
Parses the response as json and returns a dict
locust/contrib/fasthttp.py:572
↓ 2 callersFunctionmanual_report
(name_or_func)
examples/manual_stats_reporting.py:51
↓ 2 callersMethodon_stop
Called when a User stops executing this TaskSet. E.g. when TaskSet.interrupt() is called or when the User is killed
locust/user/task.py:338
↓ 2 callersMethodoptions
Sends a OPTIONS request
locust/contrib/fasthttp.py:345
↓ 2 callersFunctionparse_locustfile_option
Construct a command line parser that is only used to parse the -f argument so that we can import the test scripts in case any of them adds ad
locust/argument_parser.py:307
↓ 2 callersFunctionprint_task_ratio
This function calculates the task ratio of users based on the user total count.
locust/user/inspectuser.py:11
↓ 2 callersMethodpublish
Publish a message to the MQTT broker. This method wraps the underlying paho-mqtt client's method in order to set up & fire Locust eve
locust/contrib/mqtt.py:419
↓ 2 callersMethodrebalancing_enabled
(self)
locust/runners.py:709
↓ 2 callersMethodrecv_from_client
(self)
locust/test/test_runners.py:82
↓ 2 callersMethodremove_files_if_exists
(self)
locust/test/test_web.py:1309
↓ 2 callersFunctionrender_template_from
(file, build_path=DEFAULT_BUILD_PATH, **kwargs)
locust/html.py:27
↓ 2 callersMethodreset_connection
(self)
locust/runners.py:1347
↓ 2 callersMethodreset_state
(self)
locust/test/test_runners.py:139
↓ 2 callersMethodrun
(self)
locust/user/task.py:346
↓ 2 callersFunctionsave_html_report
()
locust/main.py:666
↓ 2 callersMethodscroll
( self, scroll_filter=None, limit=10, with_payload=True, )
locust/contrib/qdrant.py:219
↓ 2 callersMethodsearch
( self, data, anns_field, limit, filter="", search_params=None
locust/contrib/milvus.py:36
↓ 2 callersFunctionselectedOptionsToArray
(selectElement: HTMLSelectElement)
locust/webui/src/components/Form/tests/Select.test.tsx:6
↓ 2 callersMethodsend_to_client
(self, message)
locust/test/test_runners.py:75
↓ 2 callersMethodsetUp
(self)
locust/test/test_runners.py:2276
↓ 2 callersMethodsetUp
(self)
locust/test/test_parser.py:20
↓ 2 callersFunctionset_available_things
(user_classes, shape_classes)
locust/main.py:107
↓ 2 callersFunctionsetup_distributed_stats_event_listeners
(events: Events, stats: RequestStats)
locust/stats.py:824
↓ 2 callersFunctionsetup_logging
(loglevel, logfile=None)
locust/log.py:23
↓ 2 callersFunctionsetup_parser_arguments
Setup command-line options Takes a configargparse.ArgumentParser as argument and calls it's add_argument for each of the supported argum
locust/argument_parser.py:469
↓ 2 callersFunctionshutdown
Shut down locust by firing quitting event, printing/writing stats and exiting
locust/main.py:620
↓ 2 callersFunctionstart_automatic_run
()
locust/main.py:525
↓ 2 callersMethodstats_history_file_name
(self)
locust/stats.py:1252
↓ 2 callersMethodstats_history_flush
(self)
locust/stats.py:1237
↓ 2 callersMethodt1
(self)
locust/test/test_locust_class.py:98
↓ 2 callersFunctionto_weighted_list
(transitions: dict)
locust/user/markov_taskset.py:137
↓ 2 callersFunctiontoggleDrawer
(open: boolean)
locust/webui/src/components/Layout/Navbar/Navbar.tsx:28
↓ 2 callersMethodupdate_worker_logs
(self, worker_log_report)
locust/env.py:225
↓ 2 callersMethodupsert
(self, points)
locust/contrib/qdrant.py:196
← previousnext →201–300 of 1,982, ranked by callers