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

ProfileUploadTest::test_upload_in_parts

First seen 1 month, 1 week ago in 78a4357
CI github-actions:test 15 runs
Average
132 ms
median 135 ms
max 281 ms
Phases
Setup 0.67 ms Call 131 ms Teardown 0.17 ms
Categories
Database 95 ms App code 3 ms Test code 0.23 ms Other (Libraries, Serialization, Unsampled, pytest) 34 ms

133 database queries per run

Needs 201 KB of memory (max 784 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call102 ms99.4%
ProfileUploadTest.test_upload_in_partsapps/api/tests.py:727 response = self.upload(third)49 ms47.3%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(33 ms31.6%
Client.postdjango/test/client.py:115333 ms31.6%
RequestFactory.postdjango/test/client.py:49933 ms31.6%
RequestFactory.genericdjango/test/client.py:67133 ms31.6%
Client.requestdjango/test/client.py:108233 ms31.6%
ClientHandler.__call__django/test/client.py:17323 ms22.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6223 ms22.1%
__init____init__:-123 ms22.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10423 ms22.1%
WhiteNoise.add_fileswhitenoise/base.py:10823 ms22.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12018 ms17.4%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13118 ms17.4%
WhiteNoise.get_static_filewhitenoise/base.py:20813 ms12.6%
StaticFile.__init__whitenoise/responders.py:737 ms6.3%
StaticFile.get_headerswhitenoise/responders.py:1785 ms4.7%
parsedate<stdlib>/email/_parseaddr.py:1855 ms4.7%
parsedate_tz<stdlib>/email/_parseaddr.py:503 ms3.2%
_parsedate_tz<stdlib>/email/_parseaddr.py:1803 ms3.2%
StaticFile.get_headerswhitenoise/responders.py:1762 ms1.6%
formatdate<stdlib>/email/utils.py:2592 ms1.6%
StaticFile.__init__whitenoise/responders.py:775 ms4.7%
StaticFile.get_alternativeswhitenoise/responders.py:2005 ms4.7%
__init____init__:-13 ms3.2%
Headers.__init__<stdlib>/wsgiref/headers.py:362 ms1.6%
<GC>~2 ms1.6%
Headers.__init__<stdlib>/wsgiref/headers.py:432 ms1.6%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:502 ms1.6%
StaticFile.__init__whitenoise/responders.py:722 ms1.6%
StaticFile.get_file_statswhitenoise/responders.py:1572 ms1.6%
WhiteNoise.get_static_filewhitenoise/base.py:2023 ms3.2%
WhiteNoise.add_mime_headerswhitenoise/base.py:2213 ms3.2%
Headers.add_header<stdlib>/wsgiref/headers.py:1832 ms1.6%
Headers.add_header<stdlib>/wsgiref/headers.py:1852 ms1.6%
WhiteNoise.get_static_filewhitenoise/base.py:2032 ms1.6%
WhiteNoise.add_cache_headerswhitenoise/base.py:2242 ms1.6%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms1.6%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms1.6%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms1.6%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2052 ms1.6%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1862 ms1.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms3.2%
scantreewhitenoise/base.py:2623 ms3.2%
scantreewhitenoise/base.py:2623 ms3.2%
scantreewhitenoise/base.py:2642 ms1.6%
scantreewhitenoise/base.py:2622 ms1.6%
scantreewhitenoise/base.py:2622 ms1.6%
scantreewhitenoise/base.py:2622 ms1.6%
scantreewhitenoise/base.py:2642 ms1.6%
ClientHandler.__call__django/test/client.py:18610 ms9.5%
BaseHandler.get_responsedjango/core/handlers/base.py:14110 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms9.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13010 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms9.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms9.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12310 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms9.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms9.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms9.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms9.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms9.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms9.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms9.5%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3410 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms9.5%
BaseHandler._get_responsedjango/core/handlers/base.py:19810 ms9.5%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:6510 ms9.5%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:3710 ms9.5%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:6410 ms9.5%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:75 return view_func(request, *args, **kwargs)8 ms7.9%
profile_uploadapps/api/urls.py:1503 ms3.2%
get_or_create_numberedapps/projects/models.py:18 existing = model.objects.filter(project=project, **lookup).first()2 ms1.6%
QuerySet.firstdjango/db/models/query.py:11452 ms1.6%
QuerySet.__iter__django/db/models/query.py:3902 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms1.6%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms1.6%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms1.6%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms1.6%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms1.6%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms1.6%
Col.as_sqldjango/db/models/expressions.py:13252 ms1.6%
SQLCompiler.quote_name_unless_aliasdjango/db/backends/postgresql/compiler.py:342 ms1.6%
SQLCompiler.quote_name_unless_aliasdjango/db/models/sql/compiler.py:5612 ms1.6%
Query.extra_selectdjango/db/models/sql/query.py:26332 ms1.6%
get_or_create_numberedapps/projects/models.py:212 ms1.6%
next_numberapps/projects/models.py:35 return (model.objects.filter(project_id=project_id).aggregate(last=models.Max("number"))["last"] or 0) + 12 ms1.6%
QuerySet.aggregatedjango/db/models/query.py:5942 ms1.6%
Query.get_aggregationdjango/db/models/sql/query.py:4932 ms1.6%
WhereNode.split_having_qualifydjango/db/models/sql/where.py:472 ms1.6%
cached_property.__get__django/utils/functional.py:472 ms1.6%
profile_uploadapps/api/urls.py:152 part = ProfilePart.objects.filter(profile=profile, index=index).order_by("-id").first()2 ms1.6%
QuerySet.firstdjango/db/models/query.py:11452 ms1.6%
QuerySet.__iter__django/db/models/query.py:3902 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms1.6%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:9782 ms1.6%
profile_uploadapps/api/urls.py:154 part = ProfilePart.objects.create(2 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.6%
QuerySet.createdjango/db/models/query.py:6692 ms1.6%
Model.savedjango/db/models/base.py:8742 ms1.6%
Model.save_basedjango/db/models/base.py:9662 ms1.6%
Model._save_tabledjango/db/models/base.py:11672 ms1.6%
Model._do_insertdjango/db/models/base.py:12182 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.6%
QuerySet._insertdjango/db/models/query.py:19182 ms1.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
profile_uploadapps/api/urls.py:163 url = request.build_absolute_uri(project.url("project_profile", profile.number))2 ms1.6%
Project.urlapps/projects/models.py:59 return reverse(name, args=[self.organization.slug, self.slug, *args])2 ms1.6%
reversedjango/urls/base.py:982 ms1.6%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:72 project = get_object_or_404(Project, secrettokens__token=request.headers.get("Authorization"))2 ms1.6%
get_object_or_404django/shortcuts.py:902 ms1.6%
QuerySet.getdjango/db/models/query.py:6352 ms1.6%
QuerySet.__len__django/db/models/query.py:3722 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms1.6%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms1.6%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms1.6%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms1.6%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:2552 ms1.6%
SQLCompiler.get_default_columnsdjango/db/models/sql/compiler.py:10292 ms1.6%
ProfileUploadTest.uploadapps/api/tests.py:49516 ms15.8%
_SharedTaskProxy.__call__potatoq/app.py:76316 ms15.8%
Task.__call__potatoq/task.py:18916 ms15.8%
process_profileapps/api/tasks.py:23911 ms11.0%
process_profile_partapps/projects/profiles.py:3835 ms4.7%
upsert_testsapps/projects/profiles.py:4905 ms4.7%
TestManager.upsertapps/projects/models.py:236 return {test.name: test for test in self.filter(project=project, name__in=names)}5 ms4.7%
QuerySet.__iter__django/db/models/query.py:3903 ms3.2%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms3.2%
ModelIterable.__iter__django/db/models/query.py:953 ms3.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16113 ms3.2%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms1.6%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms1.6%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms1.6%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:2552 ms1.6%
SQLCompiler.get_default_columnsdjango/db/models/sql/compiler.py:10082 ms1.6%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7922 ms1.6%
SQLCompiler.get_from_clausedjango/db/models/sql/compiler.py:11402 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.6%
QuerySet.filterdjango/db/models/query.py:15422 ms1.6%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms1.6%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms1.6%
Query.add_qdjango/db/models/sql/query.py:16712 ms1.6%
Query._add_qdjango/db/models/sql/query.py:17032 ms1.6%
Query.build_filterdjango/db/models/sql/query.py:15512 ms1.6%
Query.solve_lookup_typedjango/db/models/sql/query.py:13582 ms1.6%
process_profile_partapps/projects/profiles.py:384 write_perfs(profile, part, entries, tests)3 ms3.2%
write_perfsapps/projects/profiles.py:496 TestPerf.objects.filter(profile=profile, part=part.index).delete()2 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.6%
QuerySet.filterdjango/db/models/query.py:15422 ms1.6%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms1.6%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms1.6%
Query.add_qdjango/db/models/sql/query.py:16712 ms1.6%
Query._add_qdjango/db/models/sql/query.py:17032 ms1.6%
Query.build_filterdjango/db/models/sql/query.py:15772 ms1.6%
Query.setup_joinsdjango/db/models/sql/query.py:19112 ms1.6%
write_perfsapps/projects/profiles.py:497 TestPerf.objects.bulk_create(2 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.6%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms1.6%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms1.6%
QuerySet._insertdjango/db/models/query.py:19182 ms1.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
process_profile_partapps/projects/profiles.py:374 part = ProfilePart.objects.filter(pk=part.pk).first()2 ms1.6%
QuerySet.firstdjango/db/models/query.py:11452 ms1.6%
QuerySet.__iter__django/db/models/query.py:3902 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
process_profile_partapps/projects/profiles.py:381 profile = claim_part(part, document)2 ms1.6%
Atomic.__enter__django/db/transaction.py:2112 ms1.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.6%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms1.6%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
process_profileapps/api/tasks.py:2533 ms3.2%
_SharedTaskProxy.__call__potatoq/app.py:7633 ms3.2%
Task.__call__potatoq/task.py:1893 ms3.2%
finalize_profile_partsapps/api/tasks.py:2593 ms3.2%
finalize_profileapps/projects/profiles.py:518 profile = Profile.objects.select_for_update(no_key=True).get(pk=profile_id)2 ms1.6%
QuerySet.getdjango/db/models/query.py:6352 ms1.6%
QuerySet.__len__django/db/models/query.py:3722 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
finalize_profileapps/projects/profiles.py:522 for part in ProfilePart.objects.filter(profile=profile).defer("document").order_by("index", "id"):2 ms1.6%
QuerySet.__iter__django/db/models/query.py:3902 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
process_profileapps/api/tasks.py:237 part = ProfilePart.objects.select_related("profile").get(id=part_id)2 ms1.6%
QuerySet.getdjango/db/models/query.py:6352 ms1.6%
QuerySet.__len__django/db/models/query.py:3722 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
ProfileUploadTest.test_upload_in_partsapps/api/tests.py:73326 ms25.2%
ProfileUploadTest.uploadapps/api/tests.py:49521 ms20.5%
_SharedTaskProxy.__call__potatoq/app.py:76321 ms20.5%
Task.__call__potatoq/task.py:18921 ms20.5%
process_profileapps/api/tasks.py:23910 ms9.5%
process_profile_partapps/projects/profiles.py:381 profile = claim_part(part, document)5 ms4.7%
claim_partapps/projects/profiles.py:397 profile = Profile.objects.select_for_update(no_key=True).get(pk=part.profile_id)2 ms1.6%
QuerySet.getdjango/db/models/query.py:6252 ms1.6%
QuerySet.filterdjango/db/models/query.py:15422 ms1.6%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms1.6%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms1.6%
Query.add_qdjango/db/models/sql/query.py:16712 ms1.6%
Query._add_qdjango/db/models/sql/query.py:17032 ms1.6%
Query.build_filterdjango/db/models/sql/query.py:16112 ms1.6%
claim_partapps/projects/profiles.py:415 project = profile.project2 ms1.6%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2572 ms1.6%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2222 ms1.6%
QuerySet.getdjango/db/models/query.py:6352 ms1.6%
QuerySet.__len__django/db/models/query.py:3722 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms1.6%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms1.6%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:882 ms1.6%
WhereNode.split_having_qualifydjango/db/models/sql/where.py:472 ms1.6%
cached_property.__get__django/utils/functional.py:472 ms1.6%
WhereNode.contains_over_clausedjango/db/models/sql/where.py:2642 ms1.6%
WhereNode._contains_over_clausedjango/db/models/sql/where.py:2592 ms1.6%
claim_partapps/projects/profiles.py:4172 ms1.6%
get_or_create_environmentapps/projects/environments.py:63 obj, created = Environment.objects.get_or_create(2 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.6%
QuerySet.get_or_createdjango/db/models/query.py:9872 ms1.6%
QuerySet.getdjango/db/models/query.py:6352 ms1.6%
QuerySet.__len__django/db/models/query.py:3722 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16622 ms1.6%
cursor_iterdjango/db/models/sql/compiler.py:22542 ms1.6%
cursor_iter.<locals>.<lambda>django/db/models/sql/compiler.py:22542 ms1.6%
CursorWrapper.__getattr__django/db/backends/utils.py:332 ms1.6%
DatabaseErrorWrapper.__call__django/db/utils.py:962 ms1.6%
<GC>~2 ms1.6%
process_profile_partapps/projects/profiles.py:374 part = ProfilePart.objects.filter(pk=part.pk).first()2 ms1.6%
QuerySet.firstdjango/db/models/query.py:11452 ms1.6%
QuerySet.__iter__django/db/models/query.py:3902 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
process_profile_partapps/projects/profiles.py:3832 ms1.6%
upsert_testsapps/projects/profiles.py:4902 ms1.6%
TestManager.upsertapps/projects/models.py:230 self.bulk_create( # sorted, so uploads sharing tests lock their rows in the same order2 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.6%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms1.6%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms1.6%
QuerySet._insertdjango/db/models/query.py:19182 ms1.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19242 ms1.6%
SQLInsertCompiler.as_sqldjango/db/models/sql/compiler.py:18132 ms1.6%
process_profile_partapps/projects/profiles.py:3852 ms1.6%
write_snapshotsapps/projects/profiles.py:352 cursor.executemany(SNAPSHOT_UPSERT, batch)2 ms1.6%
CursorWrapper.executemanydjango/db/backends/utils.py:842 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executemanydjango/db/backends/utils.py:1142 ms1.6%
Cursor.executemanypsycopg/cursor.py:1372 ms1.6%
Connection._pipeline_nolockpsycopg/connection.py:4722 ms1.6%
Pipeline.__exit__psycopg/_pipeline.py:732 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
process_profileapps/api/tasks.py:25310 ms9.5%
_SharedTaskProxy.__call__potatoq/app.py:76310 ms9.5%
Task.__call__potatoq/task.py:18910 ms9.5%
finalize_profile_partsapps/api/tasks.py:25910 ms9.5%
finalize_profileapps/projects/profiles.py:518 profile = Profile.objects.select_for_update(no_key=True).get(pk=profile_id)2 ms1.6%
QuerySet.getdjango/db/models/query.py:6352 ms1.6%
QuerySet.__len__django/db/models/query.py:3722 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms1.6%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms1.6%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms1.6%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms1.6%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms1.6%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms1.6%
Col.as_sqldjango/db/models/expressions.py:13252 ms1.6%
finalize_profileapps/projects/profiles.py:522 for part in ProfilePart.objects.filter(profile=profile).defer("document").order_by("index", "id"):2 ms1.6%
QuerySet.__iter__django/db/models/query.py:3902 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16222 ms1.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.6%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3202 ms1.6%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2982 ms1.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.6%
finalize_profileapps/projects/profiles.py:5282 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.6%
QuerySet.filterdjango/db/models/query.py:15422 ms1.6%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms1.6%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms1.6%
Query.add_qdjango/db/models/sql/query.py:16712 ms1.6%
Query._add_qdjango/db/models/sql/query.py:17032 ms1.6%
Query.build_filterdjango/db/models/sql/query.py:15512 ms1.6%
Query.solve_lookup_typedjango/db/models/sql/query.py:13582 ms1.6%
Query.names_to_pathdjango/db/models/sql/query.py:18632 ms1.6%
finalize_profileapps/projects/profiles.py:531 for duplicate in duplicates:2 ms1.6%
QuerySet.__iter__django/db/models/query.py:3902 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ValuesIterable.__iter__django/db/models/query.py:2222 ms1.6%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
finalize_profileapps/projects/profiles.py:5352 ms1.6%
add_perfsapps/projects/rollups.py:88 TestDailyStats.objects.bulk_create(2 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.6%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms1.6%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms1.6%
QuerySet._insertdjango/db/models/query.py:19182 ms1.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
finalize_profileapps/projects/profiles.py:5432 ms1.6%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)2 ms1.6%
Model.savedjango/db/models/base.py:8742 ms1.6%
Model.save_basedjango/db/models/base.py:9662 ms1.6%
Model._save_tabledjango/db/models/base.py:11102 ms1.6%
Model._do_updatedjango/db/models/base.py:12112 ms1.6%
QuerySet._updatedjango/db/models/query.py:13272 ms1.6%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms1.6%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
process_profileapps/api/tasks.py:237 part = ProfilePart.objects.select_related("profile").get(id=part_id)2 ms1.6%
QuerySet.getdjango/db/models/query.py:6352 ms1.6%
QuerySet.__len__django/db/models/query.py:3722 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(5 ms4.7%
Client.postdjango/test/client.py:11535 ms4.7%
RequestFactory.postdjango/test/client.py:4995 ms4.7%
RequestFactory.genericdjango/test/client.py:6715 ms4.7%
Client.requestdjango/test/client.py:10825 ms4.7%
ClientHandler.__call__django/test/client.py:1865 ms4.7%
BaseHandler.get_responsedjango/core/handlers/base.py:1415 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms4.7%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1305 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms4.7%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1235 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms4.7%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:345 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms4.7%
BaseHandler._get_responsedjango/core/handlers/base.py:1985 ms4.7%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:655 ms4.7%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:375 ms4.7%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:645 ms4.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 ms1.6%
get_object_or_404django/shortcuts.py:902 ms1.6%
QuerySet.getdjango/db/models/query.py:6352 ms1.6%
QuerySet.__len__django/db/models/query.py:3722 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:73 touch_token(request.headers.get("Authorization"))2 ms1.6%
touch_tokenapps/api/urls.py:59 SecretTokens.objects.filter(pk__in=list(stale)).update(date_last_used=now)2 ms1.6%
QuerySet.__iter__django/db/models/query.py:3902 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
FlatValuesListIterable.__iter__django/db/models/query.py:2772 ms1.6%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:75 return view_func(request, *args, **kwargs)2 ms1.6%
profile_uploadapps/api/urls.py:154 part = ProfilePart.objects.create(2 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.6%
QuerySet.createdjango/db/models/query.py:6692 ms1.6%
Model.savedjango/db/models/base.py:8742 ms1.6%
Model.save_basedjango/db/models/base.py:9662 ms1.6%
Model._save_tabledjango/db/models/base.py:11672 ms1.6%
Model._do_insertdjango/db/models/base.py:12182 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.6%
QuerySet._insertdjango/db/models/query.py:19182 ms1.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
ProfileUploadTest.test_upload_in_partsapps/api/tests.py:72924 ms23.7%
ProfileUploadTest.uploadapps/api/tests.py:49520 ms18.9%
_SharedTaskProxy.__call__potatoq/app.py:76320 ms18.9%
Task.__call__potatoq/task.py:18920 ms18.9%
process_profileapps/api/tasks.py:23915 ms14.2%
process_profile_partapps/projects/profiles.py:381 profile = claim_part(part, document)5 ms4.7%
claim_partapps/projects/profiles.py:399 ProfilePart.objects.filter(profile=profile, index=part.index, id__lt=part.id).delete() # superseded uploads2 ms1.6%
QuerySet.deletedjango/db/models/query.py:12382 ms1.6%
Collector.deletedjango/db/models/deletion.py:4712 ms1.6%
QuerySet._raw_deletedjango/db/models/query.py:12602 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
claim_partapps/projects/profiles.py:422 commit, _ = Commit.objects.get_or_create(2 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.6%
QuerySet.get_or_createdjango/db/models/query.py:9872 ms1.6%
QuerySet.getdjango/db/models/query.py:6352 ms1.6%
QuerySet.__len__django/db/models/query.py:3722 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms1.6%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms1.6%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms1.6%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms1.6%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms1.6%
claim_partapps/projects/profiles.py:4852 ms1.6%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)2 ms1.6%
Model.savedjango/db/models/base.py:8742 ms1.6%
Model.save_basedjango/db/models/base.py:9662 ms1.6%
Model._save_tabledjango/db/models/base.py:11102 ms1.6%
Model._do_updatedjango/db/models/base.py:12112 ms1.6%
QuerySet._updatedjango/db/models/query.py:13272 ms1.6%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms1.6%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
process_profile_partapps/projects/profiles.py:3833 ms3.2%
upsert_testsapps/projects/profiles.py:4903 ms3.2%
TestManager.upsertapps/projects/models.py:230 self.bulk_create( # sorted, so uploads sharing tests lock their rows in the same order2 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.6%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms1.6%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms1.6%
QuerySet._insertdjango/db/models/query.py:19182 ms1.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
TestManager.upsertapps/projects/models.py:236 return {test.name: test for test in self.filter(project=project, name__in=names)}2 ms1.6%
QuerySet.__iter__django/db/models/query.py:3902 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.6%
process_profile_partapps/projects/profiles.py:374 part = ProfilePart.objects.filter(pk=part.pk).first()2 ms1.6%
QuerySet.firstdjango/db/models/query.py:11452 ms1.6%
QuerySet.__iter__django/db/models/query.py:3902 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
process_profile_partapps/projects/profiles.py:3802 ms1.6%
load_documentapps/projects/profiles.py:1332 ms1.6%
decompress<stdlib>/gzip.py:6912 ms1.6%
process_profile_partapps/projects/profiles.py:384 write_perfs(profile, part, entries, tests)2 ms1.6%
Atomic.__exit__django/db/transaction.py:2472 ms1.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.6%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms1.6%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
process_profile_partapps/projects/profiles.py:386 ProfilePart.objects.filter(pk=part.pk).update(2 ms1.6%
QuerySet.updatedjango/db/models/query.py:13002 ms1.6%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16222 ms1.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.6%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3202 ms1.6%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2982 ms1.6%
process_profileapps/api/tasks.py:2533 ms3.2%
_SharedTaskProxy.__call__potatoq/app.py:7633 ms3.2%
Task.__call__potatoq/task.py:1893 ms3.2%
finalize_profile_partsapps/api/tasks.py:2593 ms3.2%
finalize_profileapps/projects/profiles.py:518 profile = Profile.objects.select_for_update(no_key=True).get(pk=profile_id)2 ms1.6%
QuerySet.getdjango/db/models/query.py:6352 ms1.6%
QuerySet.__len__django/db/models/query.py:3722 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
finalize_profileapps/projects/profiles.py:522 for part in ProfilePart.objects.filter(profile=profile).defer("document").order_by("index", "id"):2 ms1.6%
QuerySet.__iter__django/db/models/query.py:3902 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16622 ms1.6%
cursor_iterdjango/db/models/sql/compiler.py:22542 ms1.6%
cursor_iter.<locals>.<lambda>django/db/models/sql/compiler.py:22542 ms1.6%
process_profileapps/api/tasks.py:237 part = ProfilePart.objects.select_related("profile").get(id=part_id)2 ms1.6%
QuerySet.getdjango/db/models/query.py:6352 ms1.6%
QuerySet.__len__django/db/models/query.py:3722 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(5 ms4.7%
Client.postdjango/test/client.py:11535 ms4.7%
RequestFactory.postdjango/test/client.py:4995 ms4.7%
RequestFactory.genericdjango/test/client.py:6715 ms4.7%
Client.requestdjango/test/client.py:10825 ms4.7%
ClientHandler.__call__django/test/client.py:1865 ms4.7%
BaseHandler.get_responsedjango/core/handlers/base.py:1415 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms4.7%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1305 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms4.7%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1235 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms4.7%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:345 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms4.7%
BaseHandler._get_responsedjango/core/handlers/base.py:1985 ms4.7%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:655 ms4.7%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:375 ms4.7%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:645 ms4.7%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:75 return view_func(request, *args, **kwargs)3 ms3.2%
profile_uploadapps/api/urls.py:1502 ms1.6%
get_or_create_numberedapps/projects/models.py:18 existing = model.objects.filter(project=project, **lookup).first()2 ms1.6%
QuerySet.firstdjango/db/models/query.py:11452 ms1.6%
QuerySet.__iter__django/db/models/query.py:3902 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms1.6%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms1.6%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms1.6%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms1.6%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:2552 ms1.6%
SQLCompiler.get_default_columnsdjango/db/models/sql/compiler.py:10302 ms1.6%
ForeignKey.get_coldjango/db/models/fields/related.py:12542 ms1.6%
profile_uploadapps/api/urls.py:163 url = request.build_absolute_uri(project.url("project_profile", profile.number))2 ms1.6%
Project.urlapps/projects/models.py:59 return reverse(name, args=[self.organization.slug, self.slug, *args])2 ms1.6%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2572 ms1.6%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2222 ms1.6%
QuerySet.getdjango/db/models/query.py:6352 ms1.6%
QuerySet.__len__django/db/models/query.py:3722 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:72 project = get_object_or_404(Project, secrettokens__token=request.headers.get("Authorization"))2 ms1.6%
get_object_or_404django/shortcuts.py:902 ms1.6%
QuerySet.getdjango/db/models/query.py:6252 ms1.6%
QuerySet.filterdjango/db/models/query.py:15422 ms1.6%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms1.6%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms1.6%
Query.add_qdjango/db/models/sql/query.py:16712 ms1.6%
ProfileUploadTest.test_upload_in_partsapps/api/tests.py:7302 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.6%
QuerySet.getdjango/db/models/query.py:6352 ms1.6%
QuerySet.__len__django/db/models/query.py:3722 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.6%
ModelIterable.__iter__django/db/models/query.py:952 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms1.6%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms1.6%
TestCase._rollback_atomicsdjango/test/testcases.py:14052 ms1.6%
Atomic.__exit__django/db/transaction.py:2832 ms1.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.6%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4132 ms1.6%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3712 ms1.6%
Estimated from 63 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
23 ms
apps/projects/models.py:236
return {test.name: test for test in self.filter(project=project, name__in=names)}
TestManager.upsert · Database
7 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
5 ms
apps/api/tasks.py:237
part = ProfilePart.objects.select_related("profile").get(id=part_id)
process_profile · Database
5 ms
apps/projects/profiles.py:374
part = ProfilePart.objects.filter(pk=part.pk).first()
process_profile_part · Database
5 ms
apps/projects/profiles.py:518
profile = Profile.objects.select_for_update(no_key=True).get(pk=profile_id)
finalize_profile · Database
5 ms
apps/projects/profiles.py:522
for part in ProfilePart.objects.filter(profile=profile).defer("document").order_by("index", "id"):
finalize_profile · Database
5 ms
apps/projects/models.py:18
existing = model.objects.filter(project=project, **lookup).first()
get_or_create_numbered · Database
3 ms
apps/api/urls.py:154
part = ProfilePart.objects.create(
profile_upload · Database
3 ms
apps/projects/models.py:59
return reverse(name, args=[self.organization.slug, self.slug, *args])
Project.url · Libraries
3 ms

Fixtures

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

Database

133 queries · 33 ms

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

12×
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"."…
11×
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…
6×
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…
4×
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…
3×
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:727
101 ms
call _post_teardown
django/test/testcases.py:1240
2 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 103 ms cb18ed3 main Profile
2 weeks, 4 days ago CI github-actions:test passed 141 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 77 ms 19dac9b main Profile
3 weeks ago CI github-actions:test passed 126 ms e141198 main Profile
1 month ago CI github-actions:test passed 81 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 145 ms afde85b main Profile
1 month ago CI github-actions:test passed 104 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 160 ms 044719a main Profile
1 month ago CI github-actions:test passed 92 ms b3fedae main Profile
1 month, 1 week ago CI github-actions:test passed 148 ms 43c4eda main Profile
1 month, 1 week ago CI github-actions:test passed 153 ms 9caa567 main Profile
1 month, 1 week ago CI github-actions:test passed 135 ms ec75501 main Profile
1 month, 1 week ago CI github-actions:test passed 281 ms d2c12e5 main Profile
1 month, 1 week ago CI github-actions:test passed 85 ms 0b902f6 main Profile
1 month, 1 week ago CI github-actions:test passed 147 ms 78a4357 main Profile