flakytest.dev anze3db flakytest
Tests / apps/api/tests.py

ProfileUploadTest::test_daily_stats_count_a_profile_once_every_part_is_in

First seen 7 hours ago in 78a4357
CI github-actions:test 5 runs
Average
208 ms
median 217 ms
max 250 ms
Phases
Setup 0.77 ms Call 207 ms Teardown 0.16 ms
Categories
Database 155 ms App code 3 ms Test code 0.32 ms Other (Unsampled, Libraries, Serialization) 50 ms

224 database queries per run

Needs 179 KB of memory (max 548 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 15 minutes ago · open run
Show pytest frames
call214 ms99.5%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:76963 ms29.2%
ProfileUploadTest.uploadapps/api/tests.py:49545 ms21.0%
_SharedTaskProxy.__call__potatoq/app.py:76343 ms20.2%
Task.__call__potatoq/task.py:18943 ms20.2%
process_profileapps/api/tasks.py:23939 ms18.0%
process_profile_partapps/projects/profiles.py:342 profile = claim_part(part, document)24 ms11.2%
claim_partapps/projects/profiles.py:3786 ms3.0%
get_or_create_environmentapps/projects/environments.py:63 obj, created = Environment.objects.get_or_create(5 ms2.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:875 ms2.2%
QuerySet.get_or_createdjango/db/models/query.py:9875 ms2.2%
QuerySet.getdjango/db/models/query.py:6355 ms2.2%
QuerySet.__len__django/db/models/query.py:3725 ms2.2%
QuerySet._fetch_alldjango/db/models/query.py:20005 ms2.2%
ModelIterable.__iter__django/db/models/query.py:953 ms1.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16222 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
ModelIterable.__iter__django/db/models/query.py:1272 ms0.7%
get_or_create_environmentapps/projects/environments.py:79 obj.save(update_fields=update_fields)2 ms0.7%
Model.savedjango/db/models/base.py:8742 ms0.7%
Model.save_basedjango/db/models/base.py:9662 ms0.7%
Model._save_tabledjango/db/models/base.py:11102 ms0.7%
Model._do_updatedjango/db/models/base.py:12112 ms0.7%
QuerySet._updatedjango/db/models/query.py:13272 ms0.7%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms0.7%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms0.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms0.7%
claim_partapps/projects/profiles.py:359 ProfilePart.objects.filter(pk=part.pk).update(status=ProfilePart.StatusTypes.PENDING)3 ms1.5%
QuerySet.updatedjango/db/models/query.py:12732 ms0.7%
Query.chaindjango/db/models/sql/query.py:4352 ms0.7%
QuerySet.updatedjango/db/models/query.py:13002 ms0.7%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
claim_partapps/projects/profiles.py:3633 ms1.5%
add_perfsapps/projects/rollups.py:64 for row in TestDailyStats.objects.filter(2 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:1272 ms0.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15772 ms0.7%
SQLCompiler.get_convertersdjango/db/models/sql/compiler.py:15262 ms0.7%
add_perfsapps/projects/rollups.py:88 TestDailyStats.objects.bulk_create(2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.bulk_createdjango/db/models/query.py:8162 ms0.7%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms0.7%
QuerySet._insertdjango/db/models/query.py:19182 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
claim_partapps/projects/profiles.py:4463 ms1.5%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)3 ms1.5%
Model.savedjango/db/models/base.py:8743 ms1.5%
Model.save_basedjango/db/models/base.py:9663 ms1.5%
Model._save_tabledjango/db/models/base.py:11103 ms1.5%
Model._do_updatedjango/db/models/base.py:12113 ms1.5%
QuerySet._updatedjango/db/models/query.py:13273 ms1.5%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21403 ms1.5%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21113 ms1.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms1.5%
Cursor.executepsycopg/cursor.py:1133 ms1.5%
Connection.waitpsycopg/connection.py:4953 ms1.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2052 ms0.7%
BaseCursor._convert_querypsycopg/_cursor_base.py:4652 ms0.7%
PostgresClientQuery.convertpsycopg/_queries.py:2892 ms0.7%
PostgresClientQuery.dumppsycopg/_queries.py:2992 ms0.7%
PostgresClientQuery.dump.<locals>.<genexpr>psycopg/_queries.py:3002 ms0.7%
claim_partapps/projects/profiles.py:358 profile = Profile.objects.select_for_update(no_key=True).get(pk=part.profile_id)2 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms0.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms0.7%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms0.7%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms0.7%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5742 ms0.7%
Col.as_sqldjango/db/models/expressions.py:13252 ms0.7%
claim_partapps/projects/profiles.py:360 ProfilePart.objects.filter(profile=profile, index=part.index, id__lt=part.id).delete() # superseded uploads2 ms0.7%
QuerySet.deletedjango/db/models/query.py:12382 ms0.7%
Collector.deletedjango/db/models/deletion.py:4712 ms0.7%
QuerySet._raw_deletedjango/db/models/query.py:12602 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
claim_partapps/projects/profiles.py:376 project = profile.project2 ms0.7%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2572 ms0.7%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2222 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3122 ms0.7%
Atomic.__exit__django/db/transaction.py:2472 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms0.7%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms0.7%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
claim_partapps/projects/profiles.py:383 commit, _ = Commit.objects.get_or_create(2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.get_or_createdjango/db/models/query.py:9872 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profile_partapps/projects/profiles.py:345 write_perfs(profile, part, entries, tests)5 ms2.2%
write_perfsapps/projects/profiles.py:458 TestPerf.objects.bulk_create(3 ms1.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms1.5%
QuerySet.bulk_createdjango/db/models/query.py:8333 ms1.5%
QuerySet._batched_insertdjango/db/models/query.py:19563 ms1.5%
QuerySet._insertdjango/db/models/query.py:19183 ms1.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19253 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms1.5%
Cursor.executepsycopg/cursor.py:1133 ms1.5%
Connection.waitpsycopg/connection.py:4953 ms1.5%
write_perfsapps/projects/profiles.py:457 TestPerf.objects.filter(profile=profile, part=part.index).delete()2 ms0.7%
QuerySet.deletedjango/db/models/query.py:12382 ms0.7%
Collector.deletedjango/db/models/deletion.py:4712 ms0.7%
QuerySet._raw_deletedjango/db/models/query.py:12602 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profile_partapps/projects/profiles.py:3463 ms1.5%
write_snapshotsapps/projects/profiles.py:3122 ms0.7%
write_snapshots.<locals>.<genexpr>apps/projects/profiles.py:3102 ms0.7%
write_snapshots.<locals>.rowapps/projects/profiles.py:306 compress(json.dumps(snapshot_document(document, entry), separators=(",", ":")).encode()),2 ms0.7%
dumps<stdlib>/json/__init__.py:2412 ms0.7%
JSONEncoder.encode<stdlib>/json/encoder.py:2022 ms0.7%
JSONEncoder.iterencode<stdlib>/json/encoder.py:2632 ms0.7%
write_snapshotsapps/projects/profiles.py:313 cursor.executemany(SNAPSHOT_UPSERT, batch)2 ms0.7%
CursorWrapper.executemanydjango/db/backends/utils.py:842 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executemanydjango/db/backends/utils.py:1142 ms0.7%
Cursor.executemanypsycopg/cursor.py:1372 ms0.7%
Connection._pipeline_nolockpsycopg/connection.py:4722 ms0.7%
Pipeline.__exit__psycopg/_pipeline.py:732 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profile_partapps/projects/profiles.py:335 part = ProfilePart.objects.filter(pk=part.pk).first()2 ms0.7%
QuerySet.firstdjango/db/models/query.py:11452 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2052 ms0.7%
BaseCursor._convert_querypsycopg/_cursor_base.py:4652 ms0.7%
PostgresClientQuery.convertpsycopg/_queries.py:2892 ms0.7%
PostgresClientQuery.dumppsycopg/_queries.py:2992 ms0.7%
PostgresClientQuery.dump.<locals>.<genexpr>psycopg/_queries.py:3002 ms0.7%
process_profile_partapps/projects/profiles.py:3442 ms0.7%
upsert_testsapps/projects/profiles.py:4512 ms0.7%
TestManager.upsertapps/projects/models.py:230 self.bulk_create( # sorted, so uploads sharing tests lock their rows in the same order2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms0.7%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms0.7%
QuerySet._insertdjango/db/models/query.py:19182 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profile_partapps/projects/profiles.py:338 or ProfilePart.objects.filter(profile_id=part.profile_id, index=part.index, id__gt=part.id).exists()2 ms0.7%
QuerySet.existsdjango/db/models/query.py:13372 ms0.7%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms0.7%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profile_partapps/projects/profiles.py:347 ProfilePart.objects.filter(pk=part.pk).update(2 ms0.7%
QuerySet.updatedjango/db/models/query.py:13002 ms0.7%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profileapps/api/tasks.py:237 part = ProfilePart.objects.select_related("profile").get(id=part_id)5 ms2.2%
QuerySet.getdjango/db/models/query.py:6355 ms2.2%
QuerySet.__len__django/db/models/query.py:3725 ms2.2%
QuerySet._fetch_alldjango/db/models/query.py:20005 ms2.2%
ModelIterable.__iter__django/db/models/query.py:953 ms1.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms0.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms0.7%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms0.7%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms0.7%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms0.7%
Col.as_sqldjango/db/models/expressions.py:13252 ms0.7%
ModelIterable.__iter__django/db/models/query.py:1092 ms0.7%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(18 ms8.2%
Client.postdjango/test/client.py:115318 ms8.2%
RequestFactory.postdjango/test/client.py:49918 ms8.2%
RequestFactory.genericdjango/test/client.py:67118 ms8.2%
Client.requestdjango/test/client.py:108218 ms8.2%
ClientHandler.__call__django/test/client.py:18618 ms8.2%
BaseHandler.get_responsedjango/core/handlers/base.py:14118 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms8.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13018 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms8.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms8.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12318 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms8.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms8.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms8.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms8.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms8.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms8.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms8.2%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3418 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms8.2%
BaseHandler._get_responsedjango/core/handlers/base.py:19818 ms8.2%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:6518 ms8.2%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:3718 ms8.2%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:6418 ms8.2%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:7511 ms5.2%
profile_uploadapps/api/urls.py:1505 ms2.2%
get_or_create_numberedapps/projects/models.py:18 existing = model.objects.filter(project=project, **lookup).first()5 ms2.2%
QuerySet.firstdjango/db/models/query.py:11455 ms2.2%
QuerySet.__iter__django/db/models/query.py:3905 ms2.2%
QuerySet._fetch_alldjango/db/models/query.py:20005 ms2.2%
ModelIterable.__iter__django/db/models/query.py:955 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms1.5%
Cursor.executepsycopg/cursor.py:1133 ms1.5%
Connection.waitpsycopg/connection.py:4953 ms1.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2052 ms0.7%
BaseCursor._convert_querypsycopg/_cursor_base.py:4652 ms0.7%
PostgresClientQuery.convertpsycopg/_queries.py:2892 ms0.7%
PostgresClientQuery.dumppsycopg/_queries.py:2992 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms0.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:872 ms0.7%
SQLCompiler.get_order_bydjango/db/models/sql/compiler.py:4912 ms0.7%
SQLCompiler._order_by_pairsdjango/db/models/sql/compiler.py:4742 ms0.7%
profile_uploadapps/api/urls.py:1592 ms0.7%
compressapps/projects/profiles.py:108 return gzip.compress(data, compresslevel=6)2 ms0.7%
compress<stdlib>/gzip.py:6682 ms0.7%
profile_uploadapps/api/urls.py:1632 ms0.7%
Project.urlapps/projects/models.py:59 return reverse(name, args=[self.organization.slug, self.slug, *args])2 ms0.7%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2472 ms0.7%
profile_uploadapps/api/urls.py:152 part = ProfilePart.objects.filter(profile=profile, index=index).order_by("-id").first()2 ms0.7%
QuerySet.firstdjango/db/models/query.py:11452 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms0.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms0.7%
profile_uploadapps/api/urls.py:154 part = ProfilePart.objects.create(2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.createdjango/db/models/query.py:6692 ms0.7%
Model.savedjango/db/models/base.py:8742 ms0.7%
Model.save_basedjango/db/models/base.py:9662 ms0.7%
Model._save_tabledjango/db/models/base.py:11672 ms0.7%
Model._do_insertdjango/db/models/base.py:12182 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet._insertdjango/db/models/query.py:19182 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2052 ms0.7%
BaseCursor._convert_querypsycopg/_cursor_base.py:4652 ms0.7%
PostgresClientQuery.convertpsycopg/_queries.py:2892 ms0.7%
PostgresClientQuery.dumppsycopg/_queries.py:2992 ms0.7%
PostgresClientQuery.dump.<locals>.<genexpr>psycopg/_queries.py:3002 ms0.7%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:72 project = get_object_or_404(Project, secrettokens__token=request.headers.get("Authorization"))3 ms1.5%
get_object_or_404django/shortcuts.py:903 ms1.5%
QuerySet.getdjango/db/models/query.py:6353 ms1.5%
QuerySet.__len__django/db/models/query.py:3723 ms1.5%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms1.5%
ModelIterable.__iter__django/db/models/query.py:953 ms1.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms0.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms0.7%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms0.7%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms0.7%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms0.7%
Col.as_sqldjango/db/models/expressions.py:13252 ms0.7%
SQLCompiler.quote_name_unless_aliasdjango/db/backends/postgresql/compiler.py:-12 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:73 touch_token(request.headers.get("Authorization"))3 ms1.5%
touch_tokenapps/api/urls.py:59 SecretTokens.objects.filter(pk__in=list(stale)).update(date_last_used=now)2 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
FlatValuesListIterable.__iter__django/db/models/query.py:2772 ms0.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
Atomic.__exit__django/db/transaction.py:2472 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms0.7%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms0.7%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3122 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:753 self.upload(first)56 ms26.2%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(32 ms15.0%
Client.postdjango/test/client.py:115332 ms15.0%
RequestFactory.postdjango/test/client.py:49932 ms15.0%
RequestFactory.genericdjango/test/client.py:67132 ms15.0%
Client.requestdjango/test/client.py:108232 ms15.0%
ClientHandler.__call__django/test/client.py:17323 ms10.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6223 ms10.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10421 ms9.7%
WhiteNoise.add_fileswhitenoise/base.py:10821 ms9.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12016 ms7.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13116 ms7.5%
WhiteNoise.get_static_filewhitenoise/base.py:2088 ms3.7%
StaticFile.__init__whitenoise/responders.py:745 ms2.2%
parsedate<stdlib>/email/_parseaddr.py:1855 ms2.2%
StaticFile.__init__whitenoise/responders.py:763 ms1.5%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms0.7%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1902 ms0.7%
WhiteNoise.get_static_filewhitenoise/base.py:2038 ms3.7%
WhiteNoise.add_cache_headerswhitenoise/base.py:2248 ms3.7%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1766 ms3.0%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1976 ms3.0%
URLMixin.urldebug_toolbar/panels/staticfiles.py:206 ms3.0%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2055 ms2.2%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1863 ms1.5%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2092 ms0.7%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2122 ms0.7%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1842 ms0.7%
ManifestFilesMixin.stored_namedjango/contrib/staticfiles/storage.py:5182 ms0.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms2.2%
scantreewhitenoise/base.py:2623 ms1.5%
scantreewhitenoise/base.py:2623 ms1.5%
scantreewhitenoise/base.py:2622 ms0.7%
scantreewhitenoise/base.py:2622 ms0.7%
scantreewhitenoise/base.py:2622 ms0.7%
scantreewhitenoise/base.py:2642 ms0.7%
scantreewhitenoise/base.py:2642 ms0.7%
<GC>~2 ms0.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1112 ms0.7%
WhiteNoise.add_fileswhitenoise/base.py:1082 ms0.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1202 ms0.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1312 ms0.7%
WhiteNoise.get_static_filewhitenoise/base.py:2082 ms0.7%
StaticFile.__init__whitenoise/responders.py:732 ms0.7%
StaticFile.get_headerswhitenoise/responders.py:1762 ms0.7%
ClientHandler.__call__django/test/client.py:18610 ms4.5%
BaseHandler.get_responsedjango/core/handlers/base.py:14110 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms4.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13010 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms4.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12310 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms4.5%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3410 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms4.5%
BaseHandler._get_responsedjango/core/handlers/base.py:19810 ms4.5%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:6510 ms4.5%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:3710 ms4.5%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:6410 ms4.5%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:756 ms3.0%
profile_uploadapps/api/urls.py:1505 ms2.2%
get_or_create_numberedapps/projects/models.py:18 existing = model.objects.filter(project=project, **lookup).first()2 ms0.7%
QuerySet.firstdjango/db/models/query.py:11452 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms0.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms0.7%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms0.7%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms0.7%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms0.7%
Col.as_sqldjango/db/models/expressions.py:13252 ms0.7%
SQLCompiler.quote_name_unless_aliasdjango/db/backends/postgresql/compiler.py:342 ms0.7%
SQLCompiler.quote_name_unless_aliasdjango/db/models/sql/compiler.py:5612 ms0.7%
get_or_create_numberedapps/projects/models.py:23 with transaction.atomic():2 ms0.7%
Atomic.__enter__django/db/transaction.py:2112 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms0.7%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms0.7%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
get_or_create_numberedapps/projects/models.py:24 return model.objects.create(project=project, number=number, **lookup, **(defaults or {})), True2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.createdjango/db/models/query.py:6692 ms0.7%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)2 ms0.7%
Model.savedjango/db/models/base.py:8742 ms0.7%
Model.save_basedjango/db/models/base.py:9662 ms0.7%
Model._save_tabledjango/db/models/base.py:11672 ms0.7%
Model._do_insertdjango/db/models/base.py:12182 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet._insertdjango/db/models/query.py:19182 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
profile_uploadapps/api/urls.py:1632 ms0.7%
Project.urlapps/projects/models.py:59 return reverse(name, args=[self.organization.slug, self.slug, *args])2 ms0.7%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2572 ms0.7%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2222 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms0.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms0.7%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms0.7%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:2552 ms0.7%
SQLCompiler.get_default_columnsdjango/db/models/sql/compiler.py:10292 ms0.7%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:72 project = get_object_or_404(Project, secrettokens__token=request.headers.get("Authorization"))2 ms0.7%
get_object_or_404django/shortcuts.py:902 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:73 touch_token(request.headers.get("Authorization"))2 ms0.7%
touch_tokenapps/api/urls.py:59 SecretTokens.objects.filter(pk__in=list(stale)).update(date_last_used=now)2 ms0.7%
QuerySet.updatedjango/db/models/query.py:13002 ms0.7%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
ProfileUploadTest.uploadapps/api/tests.py:49524 ms11.2%
_SharedTaskProxy.__call__potatoq/app.py:76324 ms11.2%
Task.__call__potatoq/task.py:18924 ms11.2%
process_profileapps/api/tasks.py:23921 ms9.7%
process_profile_partapps/projects/profiles.py:342 profile = claim_part(part, document)8 ms3.7%
claim_partapps/projects/profiles.py:359 ProfilePart.objects.filter(pk=part.pk).update(status=ProfilePart.StatusTypes.PENDING)2 ms0.7%
QuerySet.updatedjango/db/models/query.py:13002 ms0.7%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
claim_partapps/projects/profiles.py:376 project = profile.project2 ms0.7%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2572 ms0.7%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2222 ms0.7%
QuerySet.getdjango/db/models/query.py:6252 ms0.7%
QuerySet.filterdjango/db/models/query.py:15422 ms0.7%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms0.7%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms0.7%
Query.add_qdjango/db/models/sql/query.py:16712 ms0.7%
Query._add_qdjango/db/models/sql/query.py:17032 ms0.7%
Query.build_filterdjango/db/models/sql/query.py:15282 ms0.7%
Query._add_qdjango/db/models/sql/query.py:17032 ms0.7%
Query.build_filterdjango/db/models/sql/query.py:15602 ms0.7%
Query.resolve_lookup_valuedjango/db/models/sql/query.py:13422 ms0.7%
claim_partapps/projects/profiles.py:3782 ms0.7%
get_or_create_environmentapps/projects/environments.py:63 obj, created = Environment.objects.get_or_create(2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.get_or_createdjango/db/models/query.py:9942 ms0.7%
QuerySet.createdjango/db/models/query.py:6692 ms0.7%
Model.savedjango/db/models/base.py:8742 ms0.7%
Model.save_basedjango/db/models/base.py:9662 ms0.7%
Model._save_tabledjango/db/models/base.py:11672 ms0.7%
Model._do_insertdjango/db/models/base.py:12182 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet._insertdjango/db/models/query.py:19182 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19242 ms0.7%
SQLInsertCompiler.as_sqldjango/db/models/sql/compiler.py:18132 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
SQLInsertCompiler.prepare_valuedjango/db/models/sql/compiler.py:17422 ms0.7%
Field.get_db_prep_savedjango/db/models/fields/__init__.py:10112 ms0.7%
DateTimeField.get_db_prep_valuedjango/db/models/fields/__init__.py:16822 ms0.7%
DateTimeField.get_prep_valuedjango/db/models/fields/__init__.py:16602 ms0.7%
DateField.get_prep_valuedjango/db/models/fields/__init__.py:15352 ms0.7%
Field.get_prep_valuedjango/db/models/fields/__init__.py:9922 ms0.7%
claim_partapps/projects/profiles.py:383 commit, _ = Commit.objects.get_or_create(2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.get_or_createdjango/db/models/query.py:9872 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms0.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms0.7%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms0.7%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms0.7%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms0.7%
claim_partapps/projects/profiles.py:4462 ms0.7%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)2 ms0.7%
Model.savedjango/db/models/base.py:8282 ms0.7%
Model._prepare_related_fields_for_savedjango/db/models/base.py:12552 ms0.7%
Model._is_pk_setdjango/db/models/base.py:6892 ms0.7%
process_profile_partapps/projects/profiles.py:338 or ProfilePart.objects.filter(profile_id=part.profile_id, index=part.index, id__gt=part.id).exists()3 ms1.5%
QuerySet.existsdjango/db/models/query.py:13373 ms1.5%
Query.has_resultsdjango/db/models/sql/query.py:6813 ms1.5%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15923 ms1.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms1.5%
Cursor.executepsycopg/cursor.py:1133 ms1.5%
Connection.waitpsycopg/connection.py:4952 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profile_partapps/projects/profiles.py:3443 ms1.5%
upsert_testsapps/projects/profiles.py:4513 ms1.5%
TestManager.upsertapps/projects/models.py:2292 ms0.7%
TestManager.slugs_forapps/projects/models.py:240 existing = dict(self.filter(project_id=project_id, name__in=names).values_list("name", "slug"))2 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms0.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
TestManager.upsertapps/projects/models.py:2312 ms0.7%
Model.__init__django/db/models/base.py:5332 ms0.7%
process_profile_partapps/projects/profiles.py:345 write_perfs(profile, part, entries, tests)3 ms1.5%
write_perfsapps/projects/profiles.py:457 TestPerf.objects.filter(profile=profile, part=part.index).delete()2 ms0.7%
QuerySet.deletedjango/db/models/query.py:12382 ms0.7%
Collector.deletedjango/db/models/deletion.py:4582 ms0.7%
Atomic.__enter__django/db/transaction.py:1832 ms0.7%
write_perfsapps/projects/profiles.py:458 TestPerf.objects.bulk_create(2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms0.7%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms0.7%
QuerySet._insertdjango/db/models/query.py:19182 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profile_partapps/projects/profiles.py:335 part = ProfilePart.objects.filter(pk=part.pk).first()2 ms0.7%
QuerySet.firstdjango/db/models/query.py:11452 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profile_partapps/projects/profiles.py:347 ProfilePart.objects.filter(pk=part.pk).update(2 ms0.7%
QuerySet.updatedjango/db/models/query.py:13002 ms0.7%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profileapps/api/tasks.py:237 part = ProfilePart.objects.select_related("profile").get(id=part_id)2 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3182 ms0.7%
process_profileapps/api/tasks.py:2532 ms0.7%
_SharedTaskProxy.__call__potatoq/app.py:7632 ms0.7%
Task.__call__potatoq/task.py:1892 ms0.7%
finalize_profile_partsapps/api/tasks.py:259 if finalize_profile(profile_id):2 ms0.7%
finalize_profileapps/projects/profiles.py:479 profile = Profile.objects.select_for_update(no_key=True).get(pk=profile_id)2 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:75432 ms15.0%
ProfileUploadTest.uploadapps/api/tests.py:49521 ms9.7%
_SharedTaskProxy.__call__potatoq/app.py:76321 ms9.7%
Task.__call__potatoq/task.py:18921 ms9.7%
process_profileapps/api/tasks.py:23914 ms6.7%
process_profile_partapps/projects/profiles.py:342 profile = claim_part(part, document)6 ms3.0%
claim_partapps/projects/profiles.py:376 project = profile.project2 ms0.7%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2572 ms0.7%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2222 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
claim_partapps/projects/profiles.py:3782 ms0.7%
get_or_create_environmentapps/projects/environments.py:63 obj, created = Environment.objects.get_or_create(2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.get_or_createdjango/db/models/query.py:9872 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
claim_partapps/projects/profiles.py:383 commit, _ = Commit.objects.get_or_create(2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.get_or_createdjango/db/models/query.py:9872 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms0.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:882 ms0.7%
Atomic.__exit__django/db/transaction.py:2472 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms0.7%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms0.7%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profile_partapps/projects/profiles.py:335 part = ProfilePart.objects.filter(pk=part.pk).first()2 ms0.7%
QuerySet.firstdjango/db/models/query.py:11452 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms0.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms0.7%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms0.7%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms0.7%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms0.7%
Col.as_sqldjango/db/models/expressions.py:13252 ms0.7%
SQLCompiler.quote_name_unless_aliasdjango/db/backends/postgresql/compiler.py:342 ms0.7%
SQLCompiler.quote_name_unless_aliasdjango/db/models/sql/compiler.py:5692 ms0.7%
process_profile_partapps/projects/profiles.py:338 or ProfilePart.objects.filter(profile_id=part.profile_id, index=part.index, id__gt=part.id).exists()2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.filterdjango/db/models/query.py:15422 ms0.7%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms0.7%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms0.7%
Query.add_qdjango/db/models/sql/query.py:16712 ms0.7%
Query._add_qdjango/db/models/sql/query.py:17032 ms0.7%
Query.build_filterdjango/db/models/sql/query.py:15772 ms0.7%
Query.setup_joinsdjango/db/models/sql/query.py:19272 ms0.7%
process_profile_partapps/projects/profiles.py:3442 ms0.7%
upsert_testsapps/projects/profiles.py:4512 ms0.7%
TestManager.upsertapps/projects/models.py:236 return {test.name: test for test in self.filter(project=project, name__in=names)}2 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profile_partapps/projects/profiles.py:345 write_perfs(profile, part, entries, tests)2 ms0.7%
write_perfsapps/projects/profiles.py:457 TestPerf.objects.filter(profile=profile, part=part.index).delete()2 ms0.7%
QuerySet.deletedjango/db/models/query.py:12382 ms0.7%
Collector.deletedjango/db/models/deletion.py:4712 ms0.7%
QuerySet._raw_deletedjango/db/models/query.py:12602 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profile_partapps/projects/profiles.py:3462 ms0.7%
write_snapshotsapps/projects/profiles.py:313 cursor.executemany(SNAPSHOT_UPSERT, batch)2 ms0.7%
CursorWrapper.executemanydjango/db/backends/utils.py:842 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executemanydjango/db/backends/utils.py:1142 ms0.7%
Cursor.executemanypsycopg/cursor.py:1372 ms0.7%
Connection._pipeline_nolockpsycopg/connection.py:4722 ms0.7%
Pipeline.__exit__psycopg/_pipeline.py:732 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profileapps/api/tasks.py:2535 ms2.2%
_SharedTaskProxy.__call__potatoq/app.py:7635 ms2.2%
Task.__call__potatoq/task.py:1895 ms2.2%
finalize_profile_partsapps/api/tasks.py:259 if finalize_profile(profile_id):5 ms2.2%
Atomic.__enter__django/db/transaction.py:2112 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms0.7%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms0.7%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
finalize_profileapps/projects/profiles.py:479 profile = Profile.objects.select_for_update(no_key=True).get(pk=profile_id)2 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3182 ms0.7%
BaseCursor._set_resultspsycopg/_cursor_base.py:5352 ms0.7%
BaseCursor._select_current_resultpsycopg/_cursor_base.py:5142 ms0.7%
finalize_profileapps/projects/profiles.py:483 for part in ProfilePart.objects.filter(profile=profile).defer("document").order_by("index", "id"):2 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profileapps/api/tasks.py:237 part = ProfilePart.objects.select_related("profile").get(id=part_id)2 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms0.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms0.7%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(11 ms5.2%
Client.postdjango/test/client.py:115311 ms5.2%
RequestFactory.postdjango/test/client.py:49911 ms5.2%
RequestFactory.genericdjango/test/client.py:67111 ms5.2%
Client.requestdjango/test/client.py:108211 ms5.2%
ClientHandler.__call__django/test/client.py:18611 ms5.2%
BaseHandler.get_responsedjango/core/handlers/base.py:14111 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms5.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13011 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms5.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12311 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms5.2%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3411 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms5.2%
BaseHandler._get_responsedjango/core/handlers/base.py:19811 ms5.2%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:6511 ms5.2%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:3711 ms5.2%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:6411 ms5.2%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:758 ms3.7%
profile_uploadapps/api/urls.py:1503 ms1.5%
get_or_create_numberedapps/projects/models.py:18 existing = model.objects.filter(project=project, **lookup).first()3 ms1.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.filterdjango/db/models/query.py:15422 ms0.7%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms0.7%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms0.7%
Query.add_qdjango/db/models/sql/query.py:16712 ms0.7%
Query._add_qdjango/db/models/sql/query.py:17032 ms0.7%
Query.build_filterdjango/db/models/sql/query.py:15772 ms0.7%
QuerySet.firstdjango/db/models/query.py:11452 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3182 ms0.7%
BaseCursor._set_resultspsycopg/_cursor_base.py:5352 ms0.7%
profile_uploadapps/api/urls.py:152 part = ProfilePart.objects.filter(profile=profile, index=index).order_by("-id").first()2 ms0.7%
QuerySet.firstdjango/db/models/query.py:11452 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
profile_uploadapps/api/urls.py:154 part = ProfilePart.objects.create(2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.createdjango/db/models/query.py:6692 ms0.7%
Model.savedjango/db/models/base.py:8742 ms0.7%
Model.save_basedjango/db/models/base.py:9662 ms0.7%
Model._save_tabledjango/db/models/base.py:11672 ms0.7%
Model._do_insertdjango/db/models/base.py:12182 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet._insertdjango/db/models/query.py:19182 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
profile_uploadapps/api/urls.py:1632 ms0.7%
Project.urlapps/projects/models.py:59 return reverse(name, args=[self.organization.slug, self.slug, *args])2 ms0.7%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2572 ms0.7%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2222 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:72 project = get_object_or_404(Project, secrettokens__token=request.headers.get("Authorization"))2 ms0.7%
get_object_or_404django/shortcuts.py:902 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:73 touch_token(request.headers.get("Authorization"))2 ms0.7%
touch_tokenapps/api/urls.py:59 SecretTokens.objects.filter(pk__in=list(stale)).update(date_last_used=now)2 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
FlatValuesListIterable.__iter__django/db/models/query.py:2772 ms0.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:75832 ms15.0%
ProfileUploadTest.uploadapps/api/tests.py:49527 ms12.7%
_SharedTaskProxy.__call__potatoq/app.py:76327 ms12.7%
Task.__call__potatoq/task.py:18927 ms12.7%
process_profileapps/api/tasks.py:23914 ms6.7%
process_profile_partapps/projects/profiles.py:342 profile = claim_part(part, document)8 ms3.7%
claim_partapps/projects/profiles.py:360 ProfilePart.objects.filter(profile=profile, index=part.index, id__lt=part.id).delete() # superseded uploads2 ms0.7%
QuerySet.deletedjango/db/models/query.py:12382 ms0.7%
Collector.deletedjango/db/models/deletion.py:4712 ms0.7%
QuerySet._raw_deletedjango/db/models/query.py:12602 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
claim_partapps/projects/profiles.py:3782 ms0.7%
get_or_create_environmentapps/projects/environments.py:79 obj.save(update_fields=update_fields)2 ms0.7%
Model.savedjango/db/models/base.py:8742 ms0.7%
Model.save_basedjango/db/models/base.py:9662 ms0.7%
Model._save_tabledjango/db/models/base.py:11102 ms0.7%
Model._do_updatedjango/db/models/base.py:11882 ms0.7%
QuerySet.filterdjango/db/models/query.py:15422 ms0.7%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms0.7%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms0.7%
Query.add_qdjango/db/models/sql/query.py:16712 ms0.7%
Query._add_qdjango/db/models/sql/query.py:17032 ms0.7%
Query.build_filterdjango/db/models/sql/query.py:15772 ms0.7%
Query.setup_joinsdjango/db/models/sql/query.py:19252 ms0.7%
claim_partapps/projects/profiles.py:383 commit, _ = Commit.objects.get_or_create(2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.get_or_createdjango/db/models/query.py:9872 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
claim_partapps/projects/profiles.py:4462 ms0.7%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)2 ms0.7%
Model.savedjango/db/models/base.py:8742 ms0.7%
Model.save_basedjango/db/models/base.py:9662 ms0.7%
Model._save_tabledjango/db/models/base.py:11102 ms0.7%
Model._do_updatedjango/db/models/base.py:12112 ms0.7%
QuerySet._updatedjango/db/models/query.py:13272 ms0.7%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms0.7%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2052 ms0.7%
BaseCursor._convert_querypsycopg/_cursor_base.py:4652 ms0.7%
PostgresClientQuery.convertpsycopg/_queries.py:2892 ms0.7%
PostgresClientQuery.dumppsycopg/_queries.py:2992 ms0.7%
PostgresClientQuery.dump.<locals>.<genexpr>psycopg/_queries.py:2992 ms0.7%
<GC>~2 ms0.7%
Atomic.__exit__django/db/transaction.py:2472 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms0.7%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms0.7%
process_profile_partapps/projects/profiles.py:3443 ms1.5%
upsert_testsapps/projects/profiles.py:4513 ms1.5%
TestManager.upsertapps/projects/models.py:230 self.bulk_create( # sorted, so uploads sharing tests lock their rows in the same order2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms0.7%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms0.7%
QuerySet._insertdjango/db/models/query.py:19182 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms0.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms0.7%
TestManager.upsertapps/projects/models.py:236 return {test.name: test for test in self.filter(project=project, name__in=names)}2 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profile_partapps/projects/profiles.py:345 write_perfs(profile, part, entries, tests)2 ms0.7%
write_perfsapps/projects/profiles.py:457 TestPerf.objects.filter(profile=profile, part=part.index).delete()2 ms0.7%
QuerySet.deletedjango/db/models/query.py:12382 ms0.7%
Collector.deletedjango/db/models/deletion.py:4712 ms0.7%
QuerySet._raw_deletedjango/db/models/query.py:12602 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profile_partapps/projects/profiles.py:3462 ms0.7%
write_snapshotsapps/projects/profiles.py:313 cursor.executemany(SNAPSHOT_UPSERT, batch)2 ms0.7%
CursorWrapper.executemanydjango/db/backends/utils.py:842 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executemanydjango/db/backends/utils.py:1142 ms0.7%
Cursor.executemanypsycopg/cursor.py:1372 ms0.7%
Connection._pipeline_nolockpsycopg/connection.py:4722 ms0.7%
Pipeline.__exit__psycopg/_pipeline.py:732 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profileapps/api/tasks.py:25311 ms5.2%
_SharedTaskProxy.__call__potatoq/app.py:76311 ms5.2%
Task.__call__potatoq/task.py:18911 ms5.2%
finalize_profile_partsapps/api/tasks.py:259 if finalize_profile(profile_id):10 ms4.5%
finalize_profileapps/projects/profiles.py:4963 ms1.5%
add_perfsapps/projects/rollups.py:30 for perf in perfs:3 ms1.5%
QuerySet.__iter__django/db/models/query.py:3903 ms1.5%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms1.5%
ModelIterable.__iter__django/db/models/query.py:953 ms1.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16113 ms1.5%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7953 ms1.5%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms0.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms0.7%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms0.7%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms0.7%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms0.7%
Col.as_sqldjango/db/models/expressions.py:13252 ms0.7%
finalize_profileapps/projects/profiles.py:479 profile = Profile.objects.select_for_update(no_key=True).get(pk=profile_id)2 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
finalize_profileapps/projects/profiles.py:483 for part in ProfilePart.objects.filter(profile=profile).defer("document").order_by("index", "id"):2 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
finalize_profileapps/projects/profiles.py:488 ProfilePart.objects.filter(profile=profile).exclude(pk__in=[part.pk for part in current]).delete()2 ms0.7%
QuerySet.deletedjango/db/models/query.py:12382 ms0.7%
Collector.deletedjango/db/models/deletion.py:4712 ms0.7%
QuerySet._raw_deletedjango/db/models/query.py:12602 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
finalize_profileapps/projects/profiles.py:492 for duplicate in duplicates:2 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ValuesIterable.__iter__django/db/models/query.py:2222 ms0.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3122 ms0.7%
finalize_profile_partsapps/api/tasks.py:2602 ms0.7%
Task.delaypotatoq/task.py:2572 ms0.7%
Task.apply_asyncpotatoq/task.py:2812 ms0.7%
Task.build_messagepotatoq/task.py:3802 ms0.7%
process_profileapps/api/tasks.py:237 part = ProfilePart.objects.select_related("profile").get(id=part_id)2 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(5 ms2.2%
Client.postdjango/test/client.py:11535 ms2.2%
RequestFactory.postdjango/test/client.py:4995 ms2.2%
RequestFactory.genericdjango/test/client.py:6715 ms2.2%
Client.requestdjango/test/client.py:10825 ms2.2%
ClientHandler.__call__django/test/client.py:1865 ms2.2%
BaseHandler.get_responsedjango/core/handlers/base.py:1415 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1305 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1235 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.2%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:345 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.2%
BaseHandler._get_responsedjango/core/handlers/base.py:1985 ms2.2%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:655 ms2.2%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:375 ms2.2%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:645 ms2.2%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:753 ms1.5%
profile_uploadapps/api/urls.py:1502 ms0.7%
get_or_create_numberedapps/projects/models.py:18 existing = model.objects.filter(project=project, **lookup).first()2 ms0.7%
QuerySet.firstdjango/db/models/query.py:11452 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
profile_uploadapps/api/urls.py:152 part = ProfilePart.objects.filter(profile=profile, index=index).order_by("-id").first()2 ms0.7%
QuerySet.firstdjango/db/models/query.py:11452 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3182 ms0.7%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:72 project = get_object_or_404(Project, secrettokens__token=request.headers.get("Authorization"))2 ms0.7%
get_object_or_404django/shortcuts.py:902 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7648 ms3.7%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(8 ms3.7%
Client.postdjango/test/client.py:11538 ms3.7%
RequestFactory.postdjango/test/client.py:4998 ms3.7%
RequestFactory.genericdjango/test/client.py:6718 ms3.7%
Client.requestdjango/test/client.py:10828 ms3.7%
ClientHandler.__call__django/test/client.py:1865 ms2.2%
BaseHandler.get_responsedjango/core/handlers/base.py:1415 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1305 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1235 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.2%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:345 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.2%
BaseHandler._get_responsedjango/core/handlers/base.py:1985 ms2.2%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:655 ms2.2%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:375 ms2.2%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:645 ms2.2%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:755 ms2.2%
profile_uploadapps/api/urls.py:1503 ms1.5%
get_or_create_numberedapps/projects/models.py:18 existing = model.objects.filter(project=project, **lookup).first()3 ms1.5%
QuerySet.firstdjango/db/models/query.py:11453 ms1.5%
QuerySet.__iter__django/db/models/query.py:3903 ms1.5%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms1.5%
ModelIterable.__iter__django/db/models/query.py:953 ms1.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms0.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms0.7%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms0.7%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
profile_uploadapps/api/urls.py:152 part = ProfilePart.objects.filter(profile=profile, index=index).order_by("-id").first()2 ms0.7%
QuerySet.firstdjango/db/models/query.py:11452 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
ClientHandler.__call__django/test/client.py:1763 ms1.5%
Signal.senddjango/dispatch/dispatcher.py:2072 ms0.7%
BaseHandler.get_responsedjango/core/handlers/base.py:1412 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms0.7%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1302 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms0.7%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1232 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms0.7%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:342 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms0.7%
BaseHandler._get_responsedjango/core/handlers/base.py:1982 ms0.7%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:652 ms0.7%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:372 ms0.7%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:642 ms0.7%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:73 touch_token(request.headers.get("Authorization"))2 ms0.7%
touch_tokenapps/api/urls.py:59 SecretTokens.objects.filter(pk__in=list(stale)).update(date_last_used=now)2 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
FlatValuesListIterable.__iter__django/db/models/query.py:2772 ms0.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7738 ms3.7%
_SharedTaskProxy.__call__potatoq/app.py:7638 ms3.7%
Task.__call__potatoq/task.py:1898 ms3.7%
finalize_profile_partsapps/api/tasks.py:259 if finalize_profile(profile_id):8 ms3.7%
finalize_profileapps/projects/profiles.py:4963 ms1.5%
add_perfsapps/projects/rollups.py:64 for row in TestDailyStats.objects.filter(2 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
add_perfsapps/projects/rollups.py:88 TestDailyStats.objects.bulk_create(2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.bulk_createdjango/db/models/query.py:8162 ms0.7%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms0.7%
QuerySet._insertdjango/db/models/query.py:19182 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
finalize_profileapps/projects/profiles.py:483 for part in ProfilePart.objects.filter(profile=profile).defer("document").order_by("index", "id"):2 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:1282 ms0.7%
Model.from_dbdjango/db/models/base.py:6052 ms0.7%
finalize_profileapps/projects/profiles.py:492 for duplicate in duplicates:2 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ValuesIterable.__iter__django/db/models/query.py:2222 ms0.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms0.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:932 ms0.7%
SQLCompiler.get_group_bydjango/db/models/sql/compiler.py:1832 ms0.7%
finalize_profileapps/projects/profiles.py:5042 ms0.7%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)2 ms0.7%
Model.savedjango/db/models/base.py:8742 ms0.7%
Model.save_basedjango/db/models/base.py:9662 ms0.7%
Model._save_tabledjango/db/models/base.py:11102 ms0.7%
Model._do_updatedjango/db/models/base.py:12112 ms0.7%
QuerySet._updatedjango/db/models/query.py:13272 ms0.7%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms0.7%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7502 ms0.7%
SysMonitor.sysmon_py_startcoverage/sysmon.py:3652 ms0.7%
bytes_to_linescoverage/sysmon.py:1932 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7552 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.countdjango/db/models/query.py:6102 ms0.7%
Query.get_countdjango/db/models/sql/query.py:6512 ms0.7%
Query.get_aggregationdjango/db/models/sql/query.py:6332 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7562 ms0.7%
ProfileUploadTest.daily_runsapps/api/tests.py:7482 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms0.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7662 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.countdjango/db/models/query.py:6102 ms0.7%
Query.get_countdjango/db/models/sql/query.py:6512 ms0.7%
Query.get_aggregationdjango/db/models/sql/query.py:6332 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7722 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.countdjango/db/models/query.py:6102 ms0.7%
Query.get_countdjango/db/models/sql/query.py:6512 ms0.7%
Query.get_aggregationdjango/db/models/sql/query.py:4662 ms0.7%
Query.check_aliasdjango/db/models/sql/query.py:12292 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7742 ms0.7%
Model.refresh_from_dbdjango/db/models/base.py:7582 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7952 ms0.7%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms0.7%
WhereNode.as_sqldjango/db/models/sql/where.py:1512 ms0.7%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms0.7%
Exact.as_sqldjango/db/models/lookups.py:4072 ms0.7%
BuiltinLookup.as_sqldjango/db/models/lookups.py:2392 ms0.7%
IntegerFieldOverflow.process_rhsdjango/db/models/lookups.py:4572 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7762 ms0.7%
ProfileUploadTest.daily_runsapps/api/tests.py:7482 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms0.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7922 ms0.7%
SQLCompiler.get_from_clausedjango/db/models/sql/compiler.py:11592 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7772 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.countdjango/db/models/query.py:6102 ms0.7%
Query.get_countdjango/db/models/sql/query.py:6512 ms0.7%
Query.get_aggregationdjango/db/models/sql/query.py:6332 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms0.7%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms0.7%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
Estimated from 133 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/api/tests.py:487
response = self.client.post(
ProfileUploadTest.upload · Libraries
24 ms
apps/projects/models.py:18
existing = model.objects.filter(project=project, **lookup).first()
get_or_create_numbered · Database
14 ms
apps/projects/models.py:466
super().save(*args, **kwargs)
Profile.save · Database
10 ms
apps/api/tasks.py:237
part = ProfilePart.objects.select_related("profile").get(id=part_id)
process_profile · Database
10 ms
apps/api/urls.py:72
project = get_object_or_404(Project, secrettokens__token=request.headers.get("Authorization"))
api_request.<locals>.decorator.<locals>.wrapped_view · Database
8 ms
apps/projects/environments.py:63
obj, created = Environment.objects.get_or_create(
get_or_create_environment · Database
8 ms
apps/api/urls.py:59
SecretTokens.objects.filter(pk__in=list(stale)).update(date_last_used=now)
touch_token · Database
6 ms
apps/projects/profiles.py:338
or ProfilePart.objects.filter(profile_id=part.profile_id, index=part.index, id__gt=part.id).exists()
process_profile_part · Database
6 ms
apps/projects/profiles.py:383
commit, _ = Commit.objects.get_or_create(
claim_part · Database
6 ms
apps/projects/profiles.py:457
TestPerf.objects.filter(profile=profile, part=part.index).delete()
write_perfs · Database
6 ms

Fixtures

Exact setup time
_template_string_if_invalid_marker function 0.06 ms
_dj_autoclear_mailbox function 0.05 ms
_django_db_marker function 0.05 ms
_django_set_urlconf function 0.05 ms
_live_server_helper function 0.04 ms
_django_clear_site_cache function 0.04 ms
monkeypatch function 0.03 ms

Database

224 queries · 84 ms

Repeated queries are usually N+1 lookups: fetch them once with select_related / prefetch_related (or selectinload).

20×
SELECT "projects_profilepart"."id", "projects_profilepart"."profile_id", "projects_profilepart"."index", "projects_profilepart"."count", "projects_profilepart"."checksum", "projects_profilepart"."status", "projects_profilepart"."error", "projects_profilepart"."tests_count", "projects_profilepart"."…
18×
SELECT "projects_profile"."id", "projects_profile"."project_id", "projects_profile"."number", "projects_profile"."environment_id", "projects_profile"."session_id", "projects_profile"."run_id", "projects_profile"."commit_id", "projects_profile"."ingest_id", "projects_profile"."external_id", "project…
11×
SELECT "projects_project"."id", "projects_project"."organization_id", "projects_project"."name", "projects_project"."slug", "projects_project"."public", "projects_project"."description", "projects_project"."date_created", "projects_project"."date_updated", "projects_project"."created_by_id" FROM "p…
8×
SELECT "projects_environment"."id", "projects_environment"."project_id", "projects_environment"."name", "projects_environment"."kind", "projects_environment"."provider", "projects_environment"."details", "projects_environment"."date_first_seen", "projects_environment"."date_last_seen" FROM "project…
6×
SELECT "projects_secrettokens"."id" AS "pk" FROM "projects_secrettokens" WHERE (("projects_secrettokens"."date_last_used" < %s OR "projects_secrettokens"."date_last_used" IS NULL) AND "projects_secrettokens"."token" = %s) FOR UPDATE SKIP LOCKED

Biggest pieces of work

call test body
apps/api/tests.py:753
212 ms
call _post_teardown
django/test/testcases.py:1240
2 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 5 results, oldest first in the strip
When Environment Outcome Duration Commit
15 minutes ago CI github-actions:test passed 215 ms 9caa567 main Profile
40 minutes ago CI github-actions:test passed 217 ms ec75501 main Profile
7 hours ago CI github-actions:test passed 250 ms d2c12e5 main Profile
7 hours ago CI github-actions:test passed 135 ms 0b902f6 main Profile
7 hours ago CI github-actions:test passed 224 ms 78a4357 main Profile