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

ProfileUploadTest::test_reupload_split_differently

First seen 1 month, 1 week ago in 78a4357
CI github-actions:test 15 runs
Average
233 ms
median 226 ms
max 344 ms
Phases
Setup 0.64 ms Call 232 ms Teardown 0.19 ms
Categories
Database 161 ms App code 3 ms Test code 0.33 ms Other (Libraries, Serialization, Unsampled, Mocking, ...) 69 ms

210 database queries per run

Needs 219 KB of memory (max 468 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call252 ms99.7%
ProfileUploadTest.test_reupload_split_differentlyapps/api/tests.py:797 self.upload(part)194 ms76.9%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(155 ms61.5%
Client.postdjango/test/client.py:1153155 ms61.5%
RequestFactory.postdjango/test/client.py:499155 ms61.5%
RequestFactory.genericdjango/test/client.py:671155 ms61.5%
Client.requestdjango/test/client.py:1082155 ms61.5%
ClientHandler.__call__django/test/client.py:173135 ms53.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:62135 ms53.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:104135 ms53.6%
WhiteNoise.add_fileswhitenoise/base.py:108135 ms53.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:120133 ms52.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:131133 ms52.5%
WhiteNoise.get_static_filewhitenoise/base.py:208133 ms52.5%
StaticFile.__init__whitenoise/responders.py:72126 ms49.9%
StaticFile.get_file_statswhitenoise/responders.py:163126 ms49.9%
<GC>~126 ms49.9%
StaticFile.__init__whitenoise/responders.py:734 ms1.6%
StaticFile.get_headerswhitenoise/responders.py:1763 ms1.1%
formatdate<stdlib>/email/utils.py:2663 ms1.1%
format_datetime<stdlib>/email/utils.py:2843 ms1.1%
StaticFile.get_headerswhitenoise/responders.py:1671 ms0.5%
StaticFile.__init__whitenoise/responders.py:771 ms0.5%
StaticFile.get_alternativeswhitenoise/responders.py:2001 ms0.5%
__init____init__:-11 ms0.5%
Headers.__init__<stdlib>/wsgiref/headers.py:431 ms0.5%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501 ms0.5%
StaticFile.__init__whitenoise/responders.py:761 ms0.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms1.1%
scantreewhitenoise/base.py:2623 ms1.1%
scantreewhitenoise/base.py:2623 ms1.1%
scantreewhitenoise/base.py:2601 ms0.5%
scantreewhitenoise/base.py:2621 ms0.5%
scantreewhitenoise/base.py:2641 ms0.5%
ClientHandler.__call__django/test/client.py:18620 ms8.0%
BaseHandler.get_responsedjango/core/handlers/base.py:14120 ms8.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms8.0%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13020 ms8.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms8.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30920 ms8.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms8.0%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12320 ms8.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms8.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30920 ms8.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms8.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30920 ms8.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms8.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30920 ms8.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms8.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30920 ms8.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms8.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30920 ms8.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms8.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30920 ms8.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms8.0%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3420 ms8.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms8.0%
BaseHandler._get_responsedjango/core/handlers/base.py:19820 ms8.0%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:6520 ms8.0%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:3720 ms8.0%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:6420 ms8.0%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:75 return view_func(request, *args, **kwargs)16 ms6.4%
profile_uploadapps/api/urls.py:15011 ms4.2%
get_or_create_numberedapps/projects/models.py:217 ms2.7%
next_numberapps/projects/models.py:35 return (model.objects.filter(project_id=project_id).aggregate(last=models.Max("number"))["last"] or 0) + 17 ms2.7%
QuerySet.aggregatedjango/db/models/query.py:5947 ms2.7%
Query.get_aggregationdjango/db/models/sql/query.py:6337 ms2.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16247 ms2.7%
CursorWrapper.executedjango/db/backends/utils.py:797 ms2.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:927 ms2.7%
CursorWrapper._executedjango/db/backends/utils.py:1057 ms2.7%
Cursor.executepsycopg/cursor.py:1137 ms2.7%
Connection.waitpsycopg/connection.py:4957 ms2.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2051 ms0.5%
BaseCursor._convert_querypsycopg/_cursor_base.py:4651 ms0.5%
PostgresClientQuery.convertpsycopg/_queries.py:2891 ms0.5%
get_or_create_numberedapps/projects/models.py:23 with transaction.atomic():1 ms0.5%
Atomic.__enter__django/db/transaction.py:2111 ms0.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms0.5%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4001 ms0.5%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3671 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
get_or_create_numberedapps/projects/models.py:24 return model.objects.create(project=project, number=number, **lookup, **(defaults or {})), True1 ms0.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.5%
QuerySet.createdjango/db/models/query.py:6691 ms0.5%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)1 ms0.5%
Model.savedjango/db/models/base.py:8741 ms0.5%
Model.save_basedjango/db/models/base.py:9661 ms0.5%
Model._save_tabledjango/db/models/base.py:11671 ms0.5%
Model._do_insertdjango/db/models/base.py:12181 ms0.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.5%
QuerySet._insertdjango/db/models/query.py:19181 ms0.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19251 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
get_or_create_numberedapps/projects/models.py:18 existing = model.objects.filter(project=project, **lookup).first()1 ms0.5%
QuerySet.firstdjango/db/models/query.py:11451 ms0.5%
QuerySet.__iter__django/db/models/query.py:3901 ms0.5%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.5%
ModelIterable.__iter__django/db/models/query.py:951 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
profile_uploadapps/api/urls.py:1593 ms1.1%
compressapps/projects/profiles.py:111 return gzip.compress(data, compresslevel=6)1 ms0.5%
compress<stdlib>/gzip.py:6681 ms0.5%
profile_uploadapps/api/urls.py:163 url = request.build_absolute_uri(project.url("project_profile", profile.number))1 ms0.5%
Project.urlapps/projects/models.py:59 return reverse(name, args=[self.organization.slug, self.slug, *args])1 ms0.5%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2571 ms0.5%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2201 ms0.5%
ForwardManyToOneDescriptor.get_querysetdjango/db/models/fields/related_descriptors.py:1701 ms0.5%
BaseManager.db_managerdjango/db/models/manager.py:1371 ms0.5%
profile_uploadapps/api/urls.py:152 part = ProfilePart.objects.filter(profile=profile, index=index).order_by("-id").first()1 ms0.5%
QuerySet.firstdjango/db/models/query.py:11451 ms0.5%
QuerySet.__iter__django/db/models/query.py:3901 ms0.5%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.5%
ModelIterable.__iter__django/db/models/query.py:951 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:73 touch_token(request.headers.get("Authorization"))3 ms1.1%
touch_tokenapps/api/urls.py:59 SecretTokens.objects.filter(pk__in=list(stale)).update(date_last_used=now)1 ms0.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.5%
QuerySet.filterdjango/db/models/query.py:15421 ms0.5%
QuerySet._filter_or_excludedjango/db/models/query.py:15601 ms0.5%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15701 ms0.5%
Query.add_qdjango/db/models/sql/query.py:16711 ms0.5%
Query._add_qdjango/db/models/sql/query.py:17031 ms0.5%
Atomic.__exit__django/db/transaction.py:2471 ms0.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms0.5%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms0.5%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3751 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:72 project = get_object_or_404(Project, secrettokens__token=request.headers.get("Authorization"))1 ms0.5%
get_object_or_404django/shortcuts.py:901 ms0.5%
QuerySet.getdjango/db/models/query.py:6351 ms0.5%
QuerySet.__len__django/db/models/query.py:3721 ms0.5%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.5%
ModelIterable.__iter__django/db/models/query.py:951 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
ProfileUploadTest.uploadapps/api/tests.py:49538 ms14.9%
_SharedTaskProxy.__call__potatoq/app.py:76338 ms14.9%
Task.__call__potatoq/task.py:18938 ms14.9%
process_profileapps/api/tasks.py:23929 ms11.7%
process_profile_partapps/projects/profiles.py:3839 ms3.7%
upsert_testsapps/projects/profiles.py:4909 ms3.7%
TestManager.upsertapps/projects/models.py:2297 ms2.7%
TestManager.slugs_forapps/projects/models.py:242 taken = set(self.filter(project_id=project_id, slug__in=set(new.values())).values_list("slug", flat=True))4 ms1.6%
QuerySet.__iter__django/db/models/query.py:3904 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20004 ms1.6%
FlatValuesListIterable.__iter__django/db/models/query.py:2774 ms1.6%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15734 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms1.1%
Cursor.executepsycopg/cursor.py:1133 ms1.1%
Connection.waitpsycopg/connection.py:4953 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16111 ms0.5%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7951 ms0.5%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5781 ms0.5%
TestManager.slugs_forapps/projects/models.py:240 existing = dict(self.filter(project_id=project_id, name__in=names).values_list("name", "slug"))3 ms1.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms1.1%
BaseManager.get_querysetdjango/db/models/manager.py:1551 ms0.5%
QuerySet.filterdjango/db/models/query.py:15421 ms0.5%
QuerySet._filter_or_excludedjango/db/models/query.py:15601 ms0.5%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15701 ms0.5%
Query.add_qdjango/db/models/sql/query.py:16711 ms0.5%
Query._add_qdjango/db/models/sql/query.py:17031 ms0.5%
Query.build_filterdjango/db/models/sql/query.py:15511 ms0.5%
Query.solve_lookup_typedjango/db/models/sql/query.py:13581 ms0.5%
Query.names_to_pathdjango/db/models/sql/query.py:18741 ms0.5%
TestManager.upsertapps/projects/models.py:236 return {test.name: test for test in self.filter(project=project, name__in=names)}3 ms1.1%
QuerySet.__iter__django/db/models/query.py:3903 ms1.1%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms1.1%
ModelIterable.__iter__django/db/models/query.py:953 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms1.1%
Cursor.executepsycopg/cursor.py:1133 ms1.1%
Connection.waitpsycopg/connection.py:4953 ms1.1%
process_profile_partapps/projects/profiles.py:381 profile = claim_part(part, document)7 ms2.7%
claim_partapps/projects/profiles.py:397 profile = Profile.objects.select_for_update(no_key=True).get(pk=part.profile_id)3 ms1.1%
QuerySet.getdjango/db/models/query.py:6353 ms1.1%
QuerySet.__len__django/db/models/query.py:3723 ms1.1%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms1.1%
ModelIterable.__iter__django/db/models/query.py:953 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms1.1%
Cursor.executepsycopg/cursor.py:1133 ms1.1%
Connection.waitpsycopg/connection.py:4953 ms1.1%
claim_partapps/projects/profiles.py:4851 ms0.5%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)1 ms0.5%
Model.savedjango/db/models/base.py:8741 ms0.5%
Model.save_basedjango/db/models/base.py:9661 ms0.5%
Model._save_tabledjango/db/models/base.py:11101 ms0.5%
Model._do_updatedjango/db/models/base.py:12111 ms0.5%
QuerySet._updatedjango/db/models/query.py:13271 ms0.5%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21401 ms0.5%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21111 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16111 ms0.5%
SQLUpdateCompiler.as_sqldjango/db/models/sql/compiler.py:20781 ms0.5%
SQLCompiler.quote_name_unless_aliasdjango/db/models/sql/compiler.py:5611 ms0.5%
claim_partapps/projects/profiles.py:399 ProfilePart.objects.filter(profile=profile, index=part.index, id__lt=part.id).delete() # superseded uploads1 ms0.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.5%
QuerySet.filterdjango/db/models/query.py:15421 ms0.5%
QuerySet._filter_or_excludedjango/db/models/query.py:15601 ms0.5%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15701 ms0.5%
Query.add_qdjango/db/models/sql/query.py:16711 ms0.5%
Query._add_qdjango/db/models/sql/query.py:17031 ms0.5%
Query.build_filterdjango/db/models/sql/query.py:16131 ms0.5%
claim_partapps/projects/profiles.py:4171 ms0.5%
get_or_create_environmentapps/projects/environments.py:79 obj.save(update_fields=update_fields)1 ms0.5%
Model.savedjango/db/models/base.py:8741 ms0.5%
Model.save_basedjango/db/models/base.py:9661 ms0.5%
Model._save_tabledjango/db/models/base.py:11101 ms0.5%
Model._do_updatedjango/db/models/base.py:12111 ms0.5%
QuerySet._updatedjango/db/models/query.py:13271 ms0.5%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21401 ms0.5%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21111 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
process_profile_partapps/projects/profiles.py:384 write_perfs(profile, part, entries, tests)4 ms1.6%
write_perfsapps/projects/profiles.py:496 TestPerf.objects.filter(profile=profile, part=part.index).delete()3 ms1.1%
QuerySet.deletedjango/db/models/query.py:12383 ms1.1%
Collector.deletedjango/db/models/deletion.py:4713 ms1.1%
QuerySet._raw_deletedjango/db/models/query.py:12603 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
write_perfsapps/projects/profiles.py:5061 ms0.5%
test_perf_fieldsapps/projects/profiles.py:2411 ms0.5%
top_categoryapps/projects/profiles.py:1881 ms0.5%
process_profile_partapps/projects/profiles.py:3853 ms1.1%
write_snapshotsapps/projects/profiles.py:3513 ms1.1%
write_snapshots.<locals>.<genexpr>apps/projects/profiles.py:3493 ms1.1%
write_snapshots.<locals>.rowapps/projects/profiles.py:345 compress(json.dumps(snapshot_document(document, entry), separators=(",", ":")).encode()),3 ms1.1%
compressapps/projects/profiles.py:111 return gzip.compress(data, compresslevel=6)3 ms1.1%
compress<stdlib>/gzip.py:6683 ms1.1%
process_profile_partapps/projects/profiles.py:386 ProfilePart.objects.filter(pk=part.pk).update(3 ms1.1%
QuerySet.updatedjango/db/models/query.py:13003 ms1.1%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21113 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms1.1%
Cursor.executepsycopg/cursor.py:1133 ms1.1%
Connection.waitpsycopg/connection.py:4953 ms1.1%
process_profile_partapps/projects/profiles.py:377 or ProfilePart.objects.filter(profile_id=part.profile_id, index=part.index, id__gt=part.id).exists()3 ms1.1%
QuerySet.existsdjango/db/models/query.py:13373 ms1.1%
Query.has_resultsdjango/db/models/sql/query.py:6813 ms1.1%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15923 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16111 ms0.5%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7671 ms0.5%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:861 ms0.5%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:751 ms0.5%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3171 ms0.5%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5781 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
process_profileapps/api/tasks.py:2537 ms2.7%
_SharedTaskProxy.__call__potatoq/app.py:7637 ms2.7%
Task.__call__potatoq/task.py:1897 ms2.7%
finalize_profile_partsapps/api/tasks.py:2597 ms2.7%
finalize_profileapps/projects/profiles.py:518 profile = Profile.objects.select_for_update(no_key=True).get(pk=profile_id)3 ms1.1%
QuerySet.getdjango/db/models/query.py:6353 ms1.1%
QuerySet.__len__django/db/models/query.py:3723 ms1.1%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms1.1%
ModelIterable.__iter__django/db/models/query.py:1271 ms0.5%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15771 ms0.5%
ModelIterable.__iter__django/db/models/query.py:1071 ms0.5%
finalize_profileapps/projects/profiles.py:530 duplicates = rows.values("test").annotate(count=Count("id"), keep=Max("id")).filter(count__gt=1)1 ms0.5%
finalize_profileapps/projects/profiles.py:5351 ms0.5%
add_perfsapps/projects/rollups.py:411 ms0.5%
finalize_profileapps/projects/profiles.py:5431 ms0.5%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)1 ms0.5%
Model.savedjango/db/models/base.py:8741 ms0.5%
Model.save_basedjango/db/models/base.py:9661 ms0.5%
Model._save_tabledjango/db/models/base.py:11101 ms0.5%
Model._do_updatedjango/db/models/base.py:11881 ms0.5%
QuerySet.filterdjango/db/models/query.py:15421 ms0.5%
QuerySet._filter_or_excludedjango/db/models/query.py:15601 ms0.5%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15701 ms0.5%
Query.add_qdjango/db/models/sql/query.py:16711 ms0.5%
Query._add_qdjango/db/models/sql/query.py:17031 ms0.5%
Query.build_filterdjango/db/models/sql/query.py:15511 ms0.5%
Query.solve_lookup_typedjango/db/models/sql/query.py:13581 ms0.5%
process_profileapps/api/tasks.py:237 part = ProfilePart.objects.select_related("profile").get(id=part_id)1 ms0.5%
QuerySet.getdjango/db/models/query.py:6351 ms0.5%
QuerySet.__len__django/db/models/query.py:3721 ms0.5%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.5%
ModelIterable.__iter__django/db/models/query.py:1321 ms0.5%
RelatedPopulator.populatedjango/db/models/query.py:27681 ms0.5%
Model.from_dbdjango/db/models/base.py:6051 ms0.5%
ProfileUploadTest.uploadapps/api/tests.py:485 body = json.dumps(body).encode()1 ms0.5%
ProfileUploadTest.test_reupload_split_differentlyapps/api/tests.py:80035 ms13.8%
ProfileUploadTest.uploadapps/api/tests.py:49527 ms10.6%
_SharedTaskProxy.__call__potatoq/app.py:76327 ms10.6%
Task.__call__potatoq/task.py:18927 ms10.6%
process_profileapps/api/tasks.py:23925 ms10.1%
process_profile_partapps/projects/profiles.py:381 profile = claim_part(part, document)11 ms4.2%
claim_partapps/projects/profiles.py:399 ProfilePart.objects.filter(profile=profile, index=part.index, id__lt=part.id).delete() # superseded uploads3 ms1.1%
QuerySet.deletedjango/db/models/query.py:12383 ms1.1%
Collector.deletedjango/db/models/deletion.py:4713 ms1.1%
QuerySet._raw_deletedjango/db/models/query.py:12603 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms1.1%
Cursor.executepsycopg/cursor.py:1133 ms1.1%
Connection.waitpsycopg/connection.py:4953 ms1.1%
claim_partapps/projects/profiles.py:4853 ms1.1%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)3 ms1.1%
Model.savedjango/db/models/base.py:8743 ms1.1%
Model.save_basedjango/db/models/base.py:9663 ms1.1%
Model._save_tabledjango/db/models/base.py:11103 ms1.1%
Model._do_updatedjango/db/models/base.py:12113 ms1.1%
QuerySet._updatedjango/db/models/query.py:13273 ms1.1%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21403 ms1.1%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21113 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
claim_partapps/projects/profiles.py:397 profile = Profile.objects.select_for_update(no_key=True).get(pk=part.profile_id)1 ms0.5%
QuerySet.getdjango/db/models/query.py:6351 ms0.5%
QuerySet.__len__django/db/models/query.py:3721 ms0.5%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.5%
ModelIterable.__iter__django/db/models/query.py:951 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
claim_partapps/projects/profiles.py:4021 ms0.5%
add_perfsapps/projects/rollups.py:88 TestDailyStats.objects.bulk_create(1 ms0.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.5%
QuerySet.bulk_createdjango/db/models/query.py:8161 ms0.5%
QuerySet._batched_insertdjango/db/models/query.py:19561 ms0.5%
QuerySet._insertdjango/db/models/query.py:19181 ms0.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19251 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
claim_partapps/projects/profiles.py:415 project = profile.project1 ms0.5%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2571 ms0.5%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2221 ms0.5%
QuerySet.getdjango/db/models/query.py:6351 ms0.5%
QuerySet.__len__django/db/models/query.py:3721 ms0.5%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.5%
ModelIterable.__iter__django/db/models/query.py:951 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
claim_partapps/projects/profiles.py:422 commit, _ = Commit.objects.get_or_create(1 ms0.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.5%
QuerySet.get_or_createdjango/db/models/query.py:9871 ms0.5%
QuerySet.getdjango/db/models/query.py:6351 ms0.5%
QuerySet.__len__django/db/models/query.py:3721 ms0.5%
process_profile_partapps/projects/profiles.py:3834 ms1.6%
upsert_testsapps/projects/profiles.py:4904 ms1.6%
TestManager.upsertapps/projects/models.py:230 self.bulk_create( # sorted, so uploads sharing tests lock their rows in the same order3 ms1.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms1.1%
QuerySet.bulk_createdjango/db/models/query.py:8333 ms1.1%
QuerySet._batched_insertdjango/db/models/query.py:19563 ms1.1%
QuerySet._insertdjango/db/models/query.py:19183 ms1.1%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19253 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms1.1%
Cursor.executepsycopg/cursor.py:1133 ms1.1%
Connection.waitpsycopg/connection.py:4953 ms1.1%
TestManager.upsertapps/projects/models.py:2291 ms0.5%
TestManager.slugs_forapps/projects/models.py:242 taken = set(self.filter(project_id=project_id, slug__in=set(new.values())).values_list("slug", flat=True))1 ms0.5%
QuerySet.__iter__django/db/models/query.py:3901 ms0.5%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.5%
FlatValuesListIterable.__iter__django/db/models/query.py:2771 ms0.5%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15731 ms0.5%
process_profile_partapps/projects/profiles.py:384 write_perfs(profile, part, entries, tests)4 ms1.6%
write_perfsapps/projects/profiles.py:496 TestPerf.objects.filter(profile=profile, part=part.index).delete()3 ms1.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms1.1%
QuerySet.filterdjango/db/models/query.py:15421 ms0.5%
QuerySet._filter_or_excludedjango/db/models/query.py:15601 ms0.5%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15701 ms0.5%
Query.add_qdjango/db/models/sql/query.py:16711 ms0.5%
Query._add_qdjango/db/models/sql/query.py:17031 ms0.5%
Query.build_filterdjango/db/models/sql/query.py:16071 ms0.5%
Query._get_coldjango/db/models/sql/query.py:4511 ms0.5%
write_perfsapps/projects/profiles.py:497 TestPerf.objects.bulk_create(1 ms0.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.5%
QuerySet.bulk_createdjango/db/models/query.py:8331 ms0.5%
QuerySet._batched_insertdjango/db/models/query.py:19561 ms0.5%
QuerySet._insertdjango/db/models/query.py:19181 ms0.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19251 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
process_profile_partapps/projects/profiles.py:377 or ProfilePart.objects.filter(profile_id=part.profile_id, index=part.index, id__gt=part.id).exists()3 ms1.1%
QuerySet.existsdjango/db/models/query.py:13373 ms1.1%
Query.has_resultsdjango/db/models/sql/query.py:6811 ms0.5%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15921 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
process_profile_partapps/projects/profiles.py:3851 ms0.5%
write_snapshotsapps/projects/profiles.py:3511 ms0.5%
write_snapshots.<locals>.<genexpr>apps/projects/profiles.py:3491 ms0.5%
write_snapshots.<locals>.rowapps/projects/profiles.py:345 compress(json.dumps(snapshot_document(document, entry), separators=(",", ":")).encode()),1 ms0.5%
compressapps/projects/profiles.py:111 return gzip.compress(data, compresslevel=6)1 ms0.5%
compress<stdlib>/gzip.py:6681 ms0.5%
process_profile_partapps/projects/profiles.py:374 part = ProfilePart.objects.filter(pk=part.pk).first()1 ms0.5%
QuerySet.firstdjango/db/models/query.py:11451 ms0.5%
QuerySet.__iter__django/db/models/query.py:3901 ms0.5%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.5%
ModelIterable.__iter__django/db/models/query.py:951 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
process_profile_partapps/projects/profiles.py:386 ProfilePart.objects.filter(pk=part.pk).update(1 ms0.5%
QuerySet.updatedjango/db/models/query.py:13001 ms0.5%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21111 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16111 ms0.5%
SQLUpdateCompiler.as_sqldjango/db/models/sql/compiler.py:20651 ms0.5%
Field.get_db_prep_savedjango/db/models/fields/__init__.py:10111 ms0.5%
Field.get_db_prep_valuedjango/db/models/fields/__init__.py:10041 ms0.5%
CharField.get_prep_valuedjango/db/models/fields/__init__.py:-11 ms0.5%
process_profileapps/api/tasks.py:237 part = ProfilePart.objects.select_related("profile").get(id=part_id)1 ms0.5%
QuerySet.getdjango/db/models/query.py:6351 ms0.5%
QuerySet.__len__django/db/models/query.py:3721 ms0.5%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.5%
ModelIterable.__iter__django/db/models/query.py:951 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(8 ms3.2%
Client.postdjango/test/client.py:11538 ms3.2%
RequestFactory.postdjango/test/client.py:4998 ms3.2%
RequestFactory.genericdjango/test/client.py:6718 ms3.2%
Client.requestdjango/test/client.py:10828 ms3.2%
ClientHandler.__call__django/test/client.py:1868 ms3.2%
BaseHandler.get_responsedjango/core/handlers/base.py:1418 ms3.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms3.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1308 ms3.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms3.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms3.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms3.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1238 ms3.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms3.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms3.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms3.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms3.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms3.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms3.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms3.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms3.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms3.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms3.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms3.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms3.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms3.2%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:348 ms3.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms3.2%
BaseHandler._get_responsedjango/core/handlers/base.py:1988 ms3.2%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:658 ms3.2%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:378 ms3.2%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:648 ms3.2%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:75 return view_func(request, *args, **kwargs)8 ms3.2%
profile_uploadapps/api/urls.py:163 url = request.build_absolute_uri(project.url("project_profile", profile.number))3 ms1.1%
Project.urlapps/projects/models.py:59 return reverse(name, args=[self.organization.slug, self.slug, *args])3 ms1.1%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2573 ms1.1%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2223 ms1.1%
QuerySet.getdjango/db/models/query.py:6353 ms1.1%
QuerySet.__len__django/db/models/query.py:3723 ms1.1%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms1.1%
ModelIterable.__iter__django/db/models/query.py:953 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms1.1%
Cursor.executepsycopg/cursor.py:1133 ms1.1%
Connection.waitpsycopg/connection.py:4953 ms1.1%
profile_uploadapps/api/urls.py:1503 ms1.1%
get_or_create_numberedapps/projects/models.py:18 existing = model.objects.filter(project=project, **lookup).first()3 ms1.1%
QuerySet.firstdjango/db/models/query.py:11453 ms1.1%
QuerySet.__iter__django/db/models/query.py:3903 ms1.1%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms1.1%
ModelIterable.__iter__django/db/models/query.py:951 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16111 ms0.5%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7671 ms0.5%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:871 ms0.5%
SQLCompiler.get_order_bydjango/db/models/sql/compiler.py:4911 ms0.5%
profile_uploadapps/api/urls.py:152 part = ProfilePart.objects.filter(profile=profile, index=index).order_by("-id").first()1 ms0.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.5%
QuerySet.filterdjango/db/models/query.py:15421 ms0.5%
QuerySet._filter_or_excludedjango/db/models/query.py:15601 ms0.5%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15701 ms0.5%
Query.add_qdjango/db/models/sql/query.py:16711 ms0.5%
Query._add_qdjango/db/models/sql/query.py:17031 ms0.5%
Query.build_filterdjango/db/models/sql/query.py:15511 ms0.5%
Query.solve_lookup_typedjango/db/models/sql/query.py:13651 ms0.5%
profile_uploadapps/api/urls.py:154 part = ProfilePart.objects.create(1 ms0.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.5%
QuerySet.createdjango/db/models/query.py:6691 ms0.5%
Model.savedjango/db/models/base.py:8741 ms0.5%
Model.save_basedjango/db/models/base.py:9661 ms0.5%
Model._save_tabledjango/db/models/base.py:11511 ms0.5%
ProfileUploadTest.test_reupload_split_differentlyapps/api/tests.py:80213 ms5.3%
_SharedTaskProxy.__call__potatoq/app.py:76313 ms5.3%
Task.__call__potatoq/task.py:18913 ms5.3%
finalize_profile_partsapps/api/tasks.py:25912 ms4.8%
finalize_profileapps/projects/profiles.py:5357 ms2.7%
add_perfsapps/projects/rollups.py:88 TestDailyStats.objects.bulk_create(4 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:874 ms1.6%
QuerySet.bulk_createdjango/db/models/query.py:8164 ms1.6%
QuerySet._batched_insertdjango/db/models/query.py:19564 ms1.6%
QuerySet._insertdjango/db/models/query.py:19184 ms1.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19253 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms1.1%
Cursor.executepsycopg/cursor.py:1133 ms1.1%
Connection.waitpsycopg/connection.py:4953 ms1.1%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19561 ms0.5%
add_perfsapps/projects/rollups.py:30 for perf in perfs:3 ms1.1%
QuerySet.__iter__django/db/models/query.py:3903 ms1.1%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms1.1%
ModelIterable.__iter__django/db/models/query.py:953 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16111 ms0.5%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7951 ms0.5%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5781 ms0.5%
WhereNode.as_sqldjango/db/models/sql/where.py:1511 ms0.5%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5781 ms0.5%
RelatedLookupMixin.as_sqldjango/db/models/fields/related_lookups.py:1281 ms0.5%
Exact.as_sqldjango/db/models/lookups.py:4071 ms0.5%
BuiltinLookup.as_sqldjango/db/models/lookups.py:2381 ms0.5%
BuiltinLookup.process_lhsdjango/db/models/lookups.py:2301 ms0.5%
Lookup.process_lhsdjango/db/models/lookups.py:1091 ms0.5%
BaseExpression.resolve_expressiondjango/db/models/expressions.py:2971 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
finalize_profileapps/projects/profiles.py:518 profile = Profile.objects.select_for_update(no_key=True).get(pk=profile_id)1 ms0.5%
QuerySet.getdjango/db/models/query.py:6351 ms0.5%
QuerySet.__len__django/db/models/query.py:3721 ms0.5%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.5%
ModelIterable.__iter__django/db/models/query.py:951 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
finalize_profileapps/projects/profiles.py:522 for part in ProfilePart.objects.filter(profile=profile).defer("document").order_by("index", "id"):1 ms0.5%
QuerySet.__iter__django/db/models/query.py:3901 ms0.5%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.5%
ModelIterable.__iter__django/db/models/query.py:951 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
finalize_profileapps/projects/profiles.py:531 for duplicate in duplicates:1 ms0.5%
QuerySet.__iter__django/db/models/query.py:3901 ms0.5%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.5%
ValuesIterable.__iter__django/db/models/query.py:2221 ms0.5%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15731 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
finalize_profileapps/projects/profiles.py:5431 ms0.5%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)1 ms0.5%
Model.savedjango/db/models/base.py:8741 ms0.5%
Model.save_basedjango/db/models/base.py:9661 ms0.5%
Model._save_tabledjango/db/models/base.py:11101 ms0.5%
Model._do_updatedjango/db/models/base.py:12111 ms0.5%
QuerySet._updatedjango/db/models/query.py:13271 ms0.5%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21401 ms0.5%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21111 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
finalize_profile_partsapps/api/tasks.py:2601 ms0.5%
QuerySet.getdjango/db/models/query.py:6351 ms0.5%
QuerySet.__len__django/db/models/query.py:3721 ms0.5%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.5%
FlatValuesListIterable.__iter__django/db/models/query.py:2771 ms0.5%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15731 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms0.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms0.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms0.5%
ProfileUploadTest.test_reupload_split_differentlyapps/api/tests.py:8033 ms1.1%
Model.refresh_from_dbdjango/db/models/base.py:7583 ms1.1%
QuerySet.getdjango/db/models/query.py:6353 ms1.1%
QuerySet.__len__django/db/models/query.py:3723 ms1.1%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms1.1%
ModelIterable.__iter__django/db/models/query.py:953 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms1.1%
Cursor.executepsycopg/cursor.py:1133 ms1.1%
Connection.waitpsycopg/connection.py:4953 ms1.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms1.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms1.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms1.1%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()3 ms1.1%
TestCase._fixture_teardowndjango/test/testcases.py:14941 ms0.5%
TestCase._should_check_constraintsdjango/test/testcases.py:15031 ms0.5%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:4921 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
TestCase._fixture_teardowndjango/test/testcases.py:14951 ms0.5%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4841 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:801 ms0.5%
ProfileUploadTest.test_reupload_split_differentlyapps/api/tests.py:8011 ms0.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.5%
QuerySet.getdjango/db/models/query.py:6351 ms0.5%
QuerySet.__len__django/db/models/query.py:3721 ms0.5%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.5%
ModelIterable.__iter__django/db/models/query.py:951 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
ProfileUploadTest.test_reupload_split_differentlyapps/api/tests.py:8051 ms0.5%
QuerySet.__iter__django/db/models/query.py:3901 ms0.5%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.5%
FlatValuesListIterable.__iter__django/db/models/query.py:2771 ms0.5%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15731 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16111 ms0.5%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7951 ms0.5%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5781 ms0.5%
WhereNode.as_sqldjango/db/models/sql/where.py:1511 ms0.5%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5781 ms0.5%
RelatedLookupMixin.as_sqldjango/db/models/fields/related_lookups.py:1281 ms0.5%
Exact.as_sqldjango/db/models/lookups.py:4071 ms0.5%
BuiltinLookup.as_sqldjango/db/models/lookups.py:2391 ms0.5%
Lookup.process_rhsdjango/db/models/lookups.py:1381 ms0.5%
FieldGetDbPrepValueMixin.get_db_prep_lookupdjango/db/models/lookups.py:2611 ms0.5%
ProfileUploadTest.test_reupload_split_differentlyapps/api/tests.py:8061 ms0.5%
QuerySet.__iter__django/db/models/query.py:3901 ms0.5%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.5%
FlatValuesListIterable.__iter__django/db/models/query.py:2771 ms0.5%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15731 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16221 ms0.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms0.5%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3201 ms0.5%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2951 ms0.5%
DatabaseWrapper.close_if_health_check_faileddjango/db/backends/postgresql/base.py:4991 ms0.5%
DatabaseWrapper.pooldjango/db/backends/postgresql/base.py:1881 ms0.5%
Estimated from 188 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
135 ms
apps/projects/models.py:466
super().save(*args, **kwargs)
Profile.save · Database
8 ms
apps/projects/models.py:35
return (model.objects.filter(project_id=project_id).aggregate(last=models.Max("number"))["last"] or 0) + 1
next_number · Database
7 ms
apps/projects/models.py:242
taken = set(self.filter(project_id=project_id, slug__in=set(new.values())).values_list("slug", flat=True))
TestManager.slugs_for · Database
5 ms
apps/projects/profiles.py:111
return gzip.compress(data, compresslevel=6)
compress · Libraries
5 ms
apps/projects/rollups.py:88
TestDailyStats.objects.bulk_create(
add_perfs · Database
5 ms
apps/projects/profiles.py:496
TestPerf.objects.filter(profile=profile, part=part.index).delete()
write_perfs · Database
5 ms
apps/projects/profiles.py:377
or ProfilePart.objects.filter(profile_id=part.profile_id, index=part.index, id__gt=part.id).exists()
process_profile_part · Database
5 ms
apps/projects/profiles.py:397
profile = Profile.objects.select_for_update(no_key=True).get(pk=part.profile_id)
claim_part · Database
4 ms
apps/projects/profiles.py:386
ProfilePart.objects.filter(pk=part.pk).update(
process_profile_part · Database
4 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.05 ms
_template_string_if_invalid_marker function 0.03 ms
_django_db_marker function 0.03 ms
_django_set_urlconf function 0.03 ms
_live_server_helper function 0.02 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.01 ms

Database

210 queries · 58 ms

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

19×
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"."…
16×
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…
10×
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…
5×
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:797
249 ms
call _post_teardown
django/test/testcases.py:1240
3 ms

Reliability

15 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 15 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 253 ms cb18ed3 main Profile
2 weeks, 4 days ago CI github-actions:test passed 198 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 115 ms 19dac9b main Profile
3 weeks ago CI github-actions:test passed 279 ms e141198 main Profile
1 month ago CI github-actions:test passed 214 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 304 ms afde85b main Profile
1 month ago CI github-actions:test passed 286 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 344 ms 044719a main Profile
1 month ago CI github-actions:test passed 268 ms b3fedae main Profile
1 month, 1 week ago CI github-actions:test passed 226 ms 43c4eda main Profile
1 month, 1 week ago CI github-actions:test passed 210 ms 9caa567 main Profile
1 month, 1 week ago CI github-actions:test passed 206 ms ec75501 main Profile
1 month, 1 week ago CI github-actions:test passed 251 ms d2c12e5 main Profile
1 month, 1 week ago CI github-actions:test passed 119 ms 0b902f6 main Profile
1 month, 1 week ago CI github-actions:test passed 220 ms 78a4357 main Profile