MCPcopy Create free account

hub / github.com/locustio/locust / functions

Functions1,982 in github.com/locustio/locust

↓ 8 callersFunctionroundToDecimalPlaces
(n: number, decimalPlaces = 0)
locust/webui/src/utils/number.ts:1
↓ 8 callersMethodstart
(self)
locust/web.py:611
↓ 8 callersMethodstop_users
(self, user_classes_stop_count: dict[str, int])
locust/runners.py:247
↓ 8 callersMethodunserialize
(cls, data)
locust/rpc/protocol.py:45
↓ 7 callersMethodcleanup
(self)
locust/input_events.py:40
↓ 7 callersMethoddelete
(self, points_selector)
locust/contrib/qdrant.py:233
↓ 7 callersMethodexecute_next_task
(self)
locust/user/task.py:395
↓ 7 callersFunctionformatLocaleString
(utcTimestamp: string)
locust/webui/src/utils/date.ts:3
↓ 7 callersFunctionparse_locustfile_paths
Returns a list of relative file paths. Args: paths (list[str]): paths taken from the -f command Returns: list[str]: Par
locust/argument_parser.py:155
↓ 7 callersFunctionparse_timespan
Parse a string representing a time span and return the number of seconds. Valid formats are: 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.
locust/util/timespan.py:5
↓ 7 callersMethodpost
Sends a POST request
locust/clients.py:294
↓ 7 callersMethodput
Sends a PUT request
locust/contrib/fasthttp.py:359
↓ 7 callersMethodschedule_task
Add a task to the User's task execution queue. :param task_callable: User task to schedule. :param first: Optional keyword a
locust/user/task.py:410
↓ 7 callersMethodsend_message
(self, msg_type: str, data: Any = None, client_id: str | None = None)
locust/runners.py:322
↓ 7 callersMethodsend_to_client
(self, msg)
locust/rpc/zmqrpc.py:32
↓ 7 callersMethodstart
( self, user_count: int, spawn_rate: float, wait=False, user_classes: list[type[User]] | None = None
locust/runners.py:738
↓ 6 callersMethod_filter_tasks_by_tags
Filter the tasks on all the user_classes recursively, according to the tags and exclude_tags attributes
locust/env.py:229
↓ 6 callersMethod_fire_event
Emit a Locust request event from a Milvus client result dict.
locust/contrib/milvus.py:324
↓ 6 callersMethod_generate_event_name
(self, event_type: str, qos: int, topic: str)
locust/contrib/mqtt.py:129
↓ 6 callersMethodassign_equal_weights
Update the user classes such that each user runs their specified tasks with equal probability.
locust/env.py:270
↓ 6 callersFunctiondiff_response_time_dicts
Returns the delta between two {response_times:request_count} dicts. Used together with the response_times cache to get the response times fo
locust/stats.py:182
↓ 6 callersMethodexpect_any
(self, to_expect, *, stream="stderr")
locust/test/subprocess_utils.py:144
↓ 6 callersFunctionformat_utc_timestamp
(unix_timestamp)
locust/util/date.py:4
↓ 6 callersFunctiongetStartSwarmMockCall
()
locust/webui/src/components/SwarmForm/tests/SwarmForm.test.tsx:14
↓ 6 callersMethodgroup
(self)
locust/user/users.py:224
↓ 6 callersFunctionisEmpty
(object: T)
locust/webui/src/utils/object.ts:1
↓ 6 callersMethodlog_error
(self, error: Exception | str | None)
locust/stats.py:412
↓ 6 callersFunctionpushQuery
(query: { [key: string]: string })
locust/webui/src/utils/url.ts:3
↓ 6 callersMethodsend_input
(self, content: str)
locust/test/subprocess_utils.py:169
↓ 6 callersFunctionsnakeCaseKeys
( object: ObjectInterface, )
locust/webui/src/utils/string.ts:42
↓ 6 callersMethodstop
Stop a running load test by stopping all running users
locust/runners.py:378
↓ 5 callersMethod__init__
(self)
locust/test/test_runners.py:105
↓ 5 callersFunction_status_code
Extract the HTTP status code from a response object. Returns ``0`` when no response is available (connection errors, custom ``ResponseContext
locust/contrib/csv_request_logger.py:71
↓ 5 callersMethod_wait_for_workers_report_after_ramp_up
The amount of time to wait after a ramp-up in order for all the workers to report their state to the master. If not supplied by the u
locust/runners.py:851
↓ 5 callersMethodget_stripped_report
Return the serialized version of this StatsEntry, and then clear the current stats.
locust/stats.py:558
↓ 5 callersMethodhead
Sends a HEAD request
locust/contrib/fasthttp.py:341
↓ 5 callersMethodon_fail
(self, reason: str = "")
locust/test/subprocess_utils.py:80
↓ 5 callersMethodpercentile
(self)
locust/stats.py:653
↓ 5 callersFunctionprocess_html_filename
(options)
locust/html.py:16
↓ 5 callersMethodreset
(self)
locust/stats.py:353
↓ 5 callersMethodreset
(cls)
locust/test/mock_logging.py:24
↓ 5 callersMethodserialize
(self)
locust/stats.py:542
↓ 5 callersFunctionshallowMerge
(objectA: ObjectA, objectB: ObjectB)
locust/webui/src/utils/object.ts:4
↓ 5 callersFunctionsnakeToCamelCase
(string: string)
locust/webui/src/utils/string.ts:32
↓ 5 callersFunctiontask
(weight: TaskT)
locust/user/task.py:46
↓ 5 callersFunctionupdateArraysAtProps
( objectToUpdate: T, propsWithUpdates: { [K in keyof T]: T[K] extends Array<infer U> ? U : T }, )
locust/webui/src/utils/object.ts:31
↓ 5 callersMethodupdate_template_args
(self)
locust/web.py:666
↓ 5 callersMethodupdate_user_class
(self, user_settings)
locust/env.py:211
↓ 5 callersFunctionuseInterval
( callback: () => void, delay: number, { shouldRunInterval, immediate }: { shouldRunInterval?: boolean;
locust/webui/src/hooks/useInterval.ts:3
↓ 5 callersFunctionuseSelectViewColumns
(defaultStructure: ITableStructure[])
locust/webui/src/hooks/useSelectViewColumns.ts:5
↓ 4 callersMethod__init__
(self, environment: Environment)
locust/runners.py:101
↓ 4 callersMethod_check_csv_headers
(self, headers, exp_fn_prefix)
locust/test/test_web.py:31
↓ 4 callersMethod_fire_event
Emit a Locust request event from a Qdrant client result dict.
locust/contrib/qdrant.py:185
↓ 4 callersFunction_format_user_classes_count_for_log
(user_classes_count: dict[str, int])
locust/runners.py:1519
↓ 4 callersFunction_get_task_ratio
(tasks, total, parent_ratio)
locust/user/inspectuser.py:66
↓ 4 callersMethod_get_user_current_count
(self, user: str)
locust/dispatch.py:332
↓ 4 callersMethod_report_request
(self)
locust/contrib/fasthttp.py:759
↓ 4 callersFunction_write_csv_files
Spawn CVS writer and exit loop after first iteration.
locust/test/test_stats.py:42
↓ 4 callersMethodclose
(self)
locust/contrib/milvus.py:20
↓ 4 callersMethodclose_files
(self)
locust/stats.py:1246
↓ 4 callersMethodconnect
Wraps :meth:`socketio.Client.connect`.
locust/contrib/socketio.py:15
↓ 4 callersFunctioncreateFormData
( inputData: IInputdata, )
locust/webui/src/utils/object.ts:11
↓ 4 callersFunctioncreateMarkLine
(charts: ChartType)
locust/webui/src/components/LineChart/LineChart.utils.ts:153
↓ 4 callersFunctiongetSeriesData
({ charts, lines, scatterplot, }: Pick<ILineChart<ChartType>, 'charts' | 'lines' | 'scatterplot'>)
locust/webui/src/components/LineChart/LineChart.utils.ts:17
↓ 4 callersFunctiongetUrlParams
()
locust/webui/src/utils/url.ts:13
↓ 4 callersMethodget_by_state
(self, state)
locust/runners.py:610
↓ 4 callersMethodget_next_task
(self)
locust/user/task.py:422
↓ 4 callersFunctiongreenlet_exception_logger
Return a function that can be used as argument to Greenlet.link_exception() that will log the unhandled exception to the given logger.
locust/log.py:88
↓ 4 callersMethodmeasure
Convenience method for firing the event with automatically calculated response time and automatically marking the request as failed if an exception is
locust/event.py:57
↓ 4 callersFunctiononChartZoom
(chart: ECharts)
locust/webui/src/components/LineChart/LineChart.utils.ts:162
↓ 4 callersMethodparse_error
(cls, error: Exception | str | None)
locust/stats.py:727
↓ 4 callersFunctionqueryStringToObject
(queryString: string)
locust/webui/src/utils/string.ts:49
↓ 4 callersFunctionraise_argument_type_error
(err_msg)
locust/argument_parser.py:403
↓ 4 callersFunctionremoveWhitespace
(string: string)
locust/webui/src/components/LineChart/tests/LineChartUtils.test.tsx:22
↓ 4 callersMethodremove_file_if_exists
(self, filename)
locust/test/test_web.py:1305
↓ 4 callersMethodsearch
( self, query, limit=10, query_filter=None, search_params=None,
locust/contrib/qdrant.py:201
↓ 4 callersMethodsend_message
Sends a message to attached worker node(s) :param msg_type: The type of the message to send :param data: Optional data to se
locust/runners.py:1198
↓ 4 callersMethodsetUp
(self)
locust/test/test_stats.py:490
↓ 4 callersMethodstart
( self, user_count: int, spawn_rate: float, wait: bool = False, user_classes: list[type[User]] | None
locust/runners.py:317
↓ 4 callersMethodstop
()
locust/web.py:346
↓ 4 callersMethodstop
(self)
locust/runners.py:563
↓ 4 callersFunctiontimestring
()
examples/test_data_management.py:36
↓ 4 callersMethodto_dict
(self, escape_string_values=False)
locust/stats.py:685
↓ 3 callersMethod_cache_response_times
(self, t: int)
locust/stats.py:665
↓ 3 callersMethod_create_runner
( self, runner_class: type[RunnerType], *args, **kwargs, )
locust/env.py:116
↓ 3 callersMethod_fast_users_on_workers_copy
deepcopy is too slow, so we use this custom copy function. The implementation was profiled and compared to other implementations such as dict
locust/dispatch.py:391
↓ 3 callersMethod_report_request
(self, exc=None)
locust/clients.py:445
↓ 3 callersMethod_user_gen
(self)
locust/dispatch.py:370
↓ 3 callersMethodcall
Wraps :meth:`socketio.Client.call`.
locust/contrib/socketio.py:58
↓ 3 callersMethodcase_handler
(self, cases: list[RampUpCase], expected: list[dict[str, int]], user_classes: list[type[User]])
locust/test/test_dispatch.py:3442
↓ 3 callersFunctiondeprecated_locust_meta_class
(deprecation_message)
locust/util/deprecation.py:20
↓ 3 callersMethodemit
(self, record)
locust/log.py:19
↓ 3 callersMethodexecute_query
(self, collection_name, query)
locust/contrib/mongodb.py:14
↓ 3 callersFunctionformatBytes
(bytes: number, decimals = 2)
locust/webui/src/utils/string.ts:52
↓ 3 callersFunctionformat_safe_timestamp
(unix_timestamp)
locust/util/date.py:8
↓ 3 callersMethodfullname
Fully qualified name of the user class, e.g. my_package.my_module.MyUserClass
locust/user/users.py:248
↓ 3 callersFunctionget_empty_argument_parser
(add_help=True, default_config_files=DEFAULT_CONFIG_FILES)
locust/argument_parser.py:219
↓ 3 callersFunctionget_logs
()
locust/log.py:79
↓ 3 callersFunctionget_readable_percentiles
Converts a list of percentiles from 0-1 fraction to 0%-100% view for using in console & csv reporting :param percentile_list: The list of per
locust/stats.py:149
↓ 3 callersMethodparse
(self, stream)
locust/argument_parser.py:148
← previousnext →101–200 of 1,982, ranked by callers