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

ProfileUploadTest::test_daily_stats_count_a_profile_once_every_part_is_in

First seen 1 month, 1 week ago in 78a4357
CI github-actions:test 15 runs
Average
191 ms
median 215 ms
max 250 ms
Phases
Setup 0.68 ms Call 190 ms Teardown 0.15 ms
Categories
Database 154 ms App code 3 ms Test code 0.43 ms Other (Libraries, Unsampled, Serialization, pytest, ...) 33 ms

224 database queries per run

Needs 154 KB of memory (max 804 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call162 ms99.5%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:753 self.upload(first)44 ms27.1%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(26 ms16.1%
Client.postdjango/test/client.py:115326 ms16.1%
RequestFactory.postdjango/test/client.py:49926 ms16.1%
RequestFactory.genericdjango/test/client.py:67126 ms16.1%
Client.requestdjango/test/client.py:108226 ms16.1%
ClientHandler.__call__django/test/client.py:17320 ms12.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6220 ms12.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10420 ms12.1%
WhiteNoise.add_fileswhitenoise/base.py:10820 ms12.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12016 ms10.1%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13116 ms10.1%
WhiteNoise.get_static_filewhitenoise/base.py:20810 ms6.0%
StaticFile.__init__whitenoise/responders.py:727 ms4.0%
StaticFile.get_file_statswhitenoise/responders.py:1615 ms3.0%
__init____init__:-12 ms1.0%
FileEntry.__init__whitenoise/responders.py:2632 ms1.0%
FileEntry.stat_regular_filewhitenoise/responders.py:2762 ms1.0%
<GC>~2 ms1.0%
StaticFile.get_file_statswhitenoise/responders.py:1632 ms1.0%
StaticFile.__init__whitenoise/responders.py:732 ms1.0%
StaticFile.get_headerswhitenoise/responders.py:1762 ms1.0%
StaticFile.__init__whitenoise/responders.py:772 ms1.0%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms1.0%
__init____init__:-12 ms1.0%
Headers.__init__<stdlib>/wsgiref/headers.py:442 ms1.0%
WhiteNoise.get_static_filewhitenoise/base.py:2033 ms2.0%
WhiteNoise.add_cache_headerswhitenoise/base.py:2242 ms1.0%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms1.0%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms1.0%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms1.0%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2052 ms1.0%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1842 ms1.0%
WhiteNoise.get_static_filewhitenoise/base.py:2022 ms1.0%
WhiteNoise.get_static_filewhitenoise/base.py:1992 ms1.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms2.0%
scantreewhitenoise/base.py:2623 ms2.0%
scantreewhitenoise/base.py:2623 ms2.0%
scantreewhitenoise/base.py:2623 ms2.0%
scantreewhitenoise/base.py:2623 ms2.0%
scantreewhitenoise/base.py:2642 ms1.0%
scantreewhitenoise/base.py:2622 ms1.0%
scantreewhitenoise/base.py:2642 ms1.0%
ClientHandler.__call__django/test/client.py:1867 ms4.0%
BaseHandler.get_responsedjango/core/handlers/base.py:1417 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms4.0%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1307 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms4.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms4.0%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1237 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms4.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms4.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms4.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms4.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms4.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms4.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms4.0%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:347 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms4.0%
BaseHandler._get_responsedjango/core/handlers/base.py:1987 ms4.0%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:657 ms4.0%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:377 ms4.0%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:647 ms4.0%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:75 return view_func(request, *args, **kwargs)5 ms3.0%
profile_uploadapps/api/urls.py:1502 ms1.0%
get_or_create_numberedapps/projects/models.py:18 existing = model.objects.filter(project=project, **lookup).first()2 ms1.0%
QuerySet.firstdjango/db/models/query.py:11452 ms1.0%
QuerySet.__iter__django/db/models/query.py:3902 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms1.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms1.0%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:872 ms1.0%
SQLCompiler.get_order_bydjango/db/models/sql/compiler.py:4912 ms1.0%
SQLCompiler._order_by_pairsdjango/db/models/sql/compiler.py:3622 ms1.0%
Expression.__hash__django/db/models/expressions.py:5622 ms1.0%
profile_uploadapps/api/urls.py:154 part = ProfilePart.objects.create(2 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.createdjango/db/models/query.py:6692 ms1.0%
Model.savedjango/db/models/base.py:8742 ms1.0%
Model.save_basedjango/db/models/base.py:9662 ms1.0%
Model._save_tabledjango/db/models/base.py:11672 ms1.0%
Model._do_insertdjango/db/models/base.py:12182 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet._insertdjango/db/models/query.py:19182 ms1.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
profile_uploadapps/api/urls.py:1642 ms1.0%
JsonResponse.__init__django/http/response.py:7612 ms1.0%
dumps<stdlib>/json/__init__.py:2412 ms1.0%
JSONEncoder.encode<stdlib>/json/encoder.py:2022 ms1.0%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:73 touch_token(request.headers.get("Authorization"))2 ms1.0%
Atomic.__enter__django/db/transaction.py:2112 ms1.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.0%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms1.0%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
ProfileUploadTest.uploadapps/api/tests.py:49518 ms11.1%
_SharedTaskProxy.__call__potatoq/app.py:76318 ms11.1%
Task.__call__potatoq/task.py:18918 ms11.1%
process_profileapps/api/tasks.py:23915 ms9.0%
process_profile_partapps/projects/profiles.py:381 profile = claim_part(part, document)8 ms5.0%
Atomic.__enter__django/db/transaction.py:2112 ms1.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.0%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms1.0%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
claim_partapps/projects/profiles.py:415 project = profile.project2 ms1.0%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2572 ms1.0%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2222 ms1.0%
QuerySet.getdjango/db/models/query.py:6252 ms1.0%
QuerySet.filterdjango/db/models/query.py:15422 ms1.0%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms1.0%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms1.0%
Query.add_qdjango/db/models/sql/query.py:16712 ms1.0%
Query._add_qdjango/db/models/sql/query.py:17032 ms1.0%
Query.build_filterdjango/db/models/sql/query.py:15282 ms1.0%
Query._add_qdjango/db/models/sql/query.py:17032 ms1.0%
Query.build_filterdjango/db/models/sql/query.py:15732 ms1.0%
Query.get_initial_aliasdjango/db/models/sql/query.py:11162 ms1.0%
claim_partapps/projects/profiles.py:4172 ms1.0%
get_or_create_environmentapps/projects/environments.py:63 obj, created = Environment.objects.get_or_create(2 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.get_or_createdjango/db/models/query.py:9872 ms1.0%
QuerySet.getdjango/db/models/query.py:6352 ms1.0%
QuerySet.__len__django/db/models/query.py:3722 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
claim_partapps/projects/profiles.py:422 commit, _ = Commit.objects.get_or_create(2 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.get_or_createdjango/db/models/query.py:9942 ms1.0%
QuerySet.createdjango/db/models/query.py:6692 ms1.0%
Model.savedjango/db/models/base.py:8742 ms1.0%
Model.save_basedjango/db/models/base.py:9662 ms1.0%
Model._save_tabledjango/db/models/base.py:11672 ms1.0%
Model._do_insertdjango/db/models/base.py:12182 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet._insertdjango/db/models/query.py:19182 ms1.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
claim_partapps/projects/profiles.py:4852 ms1.0%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)2 ms1.0%
Model.savedjango/db/models/base.py:8742 ms1.0%
Model.save_basedjango/db/models/base.py:9662 ms1.0%
Model._save_tabledjango/db/models/base.py:11102 ms1.0%
Model._do_updatedjango/db/models/base.py:12112 ms1.0%
QuerySet._updatedjango/db/models/query.py:13272 ms1.0%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms1.0%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
process_profile_partapps/projects/profiles.py:384 write_perfs(profile, part, entries, tests)3 ms2.0%
write_perfsapps/projects/profiles.py:496 TestPerf.objects.filter(profile=profile, part=part.index).delete()2 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.filterdjango/db/models/query.py:15422 ms1.0%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms1.0%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms1.0%
Query.add_qdjango/db/models/sql/query.py:16712 ms1.0%
Query._add_qdjango/db/models/sql/query.py:17032 ms1.0%
Query.build_filterdjango/db/models/sql/query.py:15992 ms1.0%
Query.trim_joinsdjango/db/models/sql/query.py:20122 ms1.0%
write_perfsapps/projects/profiles.py:497 TestPerf.objects.bulk_create(2 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms1.0%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms1.0%
QuerySet._insertdjango/db/models/query.py:19182 ms1.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
process_profile_partapps/projects/profiles.py:374 part = ProfilePart.objects.filter(pk=part.pk).first()2 ms1.0%
QuerySet.firstdjango/db/models/query.py:11452 ms1.0%
QuerySet.__iter__django/db/models/query.py:3902 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
process_profile_partapps/projects/profiles.py:3832 ms1.0%
upsert_testsapps/projects/profiles.py:4902 ms1.0%
TestManager.upsertapps/projects/models.py:230 self.bulk_create( # sorted, so uploads sharing tests lock their rows in the same order2 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms1.0%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms1.0%
QuerySet._insertdjango/db/models/query.py:19182 ms1.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
process_profileapps/api/tasks.py:237 part = ProfilePart.objects.select_related("profile").get(id=part_id)2 ms1.0%
QuerySet.getdjango/db/models/query.py:6352 ms1.0%
QuerySet.__len__django/db/models/query.py:3722 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
process_profileapps/api/tasks.py:2532 ms1.0%
_SharedTaskProxy.__call__potatoq/app.py:7632 ms1.0%
Task.__call__potatoq/task.py:1892 ms1.0%
finalize_profile_partsapps/api/tasks.py:2592 ms1.0%
finalize_profileapps/projects/profiles.py:522 for part in ProfilePart.objects.filter(profile=profile).defer("document").order_by("index", "id"):2 ms1.0%
QuerySet.__iter__django/db/models/query.py:3902 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:76944 ms27.1%
ProfileUploadTest.uploadapps/api/tests.py:49531 ms19.1%
_SharedTaskProxy.__call__potatoq/app.py:76331 ms19.1%
Task.__call__potatoq/task.py:18931 ms19.1%
process_profileapps/api/tasks.py:23928 ms17.1%
process_profile_partapps/projects/profiles.py:381 profile = claim_part(part, document)16 ms10.1%
claim_partapps/projects/profiles.py:4853 ms2.0%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)3 ms2.0%
Model.savedjango/db/models/base.py:8743 ms2.0%
Model.save_basedjango/db/models/base.py:9663 ms2.0%
Model._save_tabledjango/db/models/base.py:11103 ms2.0%
Model._do_updatedjango/db/models/base.py:12113 ms2.0%
QuerySet._updatedjango/db/models/query.py:13273 ms2.0%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21403 ms2.0%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21113 ms2.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms2.0%
CursorWrapper.executedjango/db/backends/utils.py:793 ms2.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms2.0%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms2.0%
Cursor.executepsycopg/cursor.py:1133 ms2.0%
Connection.waitpsycopg/connection.py:4953 ms2.0%
claim_partapps/projects/profiles.py:4023 ms2.0%
add_perfsapps/projects/rollups.py:64 for row in TestDailyStats.objects.filter(2 ms1.0%
QuerySet.__iter__django/db/models/query.py:3902 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
add_perfsapps/projects/rollups.py:88 TestDailyStats.objects.bulk_create(2 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.bulk_createdjango/db/models/query.py:8162 ms1.0%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms1.0%
QuerySet._insertdjango/db/models/query.py:19182 ms1.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
claim_partapps/projects/profiles.py:415 project = profile.project3 ms2.0%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2573 ms2.0%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2223 ms2.0%
QuerySet.getdjango/db/models/query.py:6353 ms2.0%
QuerySet.__len__django/db/models/query.py:3723 ms2.0%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms2.0%
ModelIterable.__iter__django/db/models/query.py:953 ms2.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms2.0%
CursorWrapper.executedjango/db/backends/utils.py:793 ms2.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms2.0%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms2.0%
Cursor.executepsycopg/cursor.py:1133 ms2.0%
Connection.waitpsycopg/connection.py:4953 ms2.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.0%
claim_partapps/projects/profiles.py:422 commit, _ = Commit.objects.get_or_create(3 ms2.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms2.0%
QuerySet.get_or_createdjango/db/models/query.py:9873 ms2.0%
QuerySet.getdjango/db/models/query.py:6353 ms2.0%
QuerySet.__len__django/db/models/query.py:3723 ms2.0%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms2.0%
ModelIterable.__iter__django/db/models/query.py:953 ms2.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms2.0%
CursorWrapper.executedjango/db/backends/utils.py:793 ms2.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms2.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
claim_partapps/projects/profiles.py:398 ProfilePart.objects.filter(pk=part.pk).update(status=ProfilePart.StatusTypes.PENDING)2 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.filterdjango/db/models/query.py:15422 ms1.0%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms1.0%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms1.0%
Query.add_qdjango/db/models/sql/query.py:16712 ms1.0%
Query._add_qdjango/db/models/sql/query.py:17032 ms1.0%
Query.build_filterdjango/db/models/sql/query.py:16132 ms1.0%
Query.build_lookupdjango/db/models/sql/query.py:14302 ms1.0%
claim_partapps/projects/profiles.py:4172 ms1.0%
get_or_create_environmentapps/projects/environments.py:63 obj, created = Environment.objects.get_or_create(2 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.get_or_createdjango/db/models/query.py:9872 ms1.0%
QuerySet.getdjango/db/models/query.py:6352 ms1.0%
QuerySet.__len__django/db/models/query.py:3722 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16622 ms1.0%
cursor_iterdjango/db/models/sql/compiler.py:22542 ms1.0%
cursor_iter.<locals>.<lambda>django/db/models/sql/compiler.py:22542 ms1.0%
process_profile_partapps/projects/profiles.py:3835 ms3.0%
upsert_testsapps/projects/profiles.py:4905 ms3.0%
TestManager.upsertapps/projects/models.py:236 return {test.name: test for test in self.filter(project=project, name__in=names)}3 ms2.0%
QuerySet.__iter__django/db/models/query.py:3903 ms2.0%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms2.0%
ModelIterable.__iter__django/db/models/query.py:953 ms2.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms2.0%
CursorWrapper.executedjango/db/backends/utils.py:793 ms2.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
TestManager.upsertapps/projects/models.py:230 self.bulk_create( # sorted, so uploads sharing tests lock their rows in the same order2 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms1.0%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms1.0%
QuerySet._insertdjango/db/models/query.py:19182 ms1.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
process_profile_partapps/projects/profiles.py:384 write_perfs(profile, part, entries, tests)3 ms2.0%
write_perfsapps/projects/profiles.py:5062 ms1.0%
test_perf_fieldsapps/projects/profiles.py:2442 ms1.0%
duplicate_ofapps/projects/profiles.py:2182 ms1.0%
write_perfsapps/projects/profiles.py:497 TestPerf.objects.bulk_create(2 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms1.0%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms1.0%
QuerySet._insertdjango/db/models/query.py:19182 ms1.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
process_profile_partapps/projects/profiles.py:374 part = ProfilePart.objects.filter(pk=part.pk).first()2 ms1.0%
QuerySet.firstdjango/db/models/query.py:11452 ms1.0%
QuerySet.__iter__django/db/models/query.py:3902 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
process_profile_partapps/projects/profiles.py:3852 ms1.0%
write_snapshotsapps/projects/profiles.py:352 cursor.executemany(SNAPSHOT_UPSERT, batch)2 ms1.0%
CursorWrapper.executemanydjango/db/backends/utils.py:842 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executemanydjango/db/backends/utils.py:1142 ms1.0%
Cursor.executemanypsycopg/cursor.py:1372 ms1.0%
Connection._pipeline_nolockpsycopg/connection.py:4722 ms1.0%
Pipeline.__exit__psycopg/_pipeline.py:732 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
process_profileapps/api/tasks.py:237 part = ProfilePart.objects.select_related("profile").get(id=part_id)3 ms2.0%
QuerySet.getdjango/db/models/query.py:6353 ms2.0%
QuerySet.__len__django/db/models/query.py:3723 ms2.0%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms2.0%
ModelIterable.__iter__django/db/models/query.py:953 ms2.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms2.0%
CursorWrapper.executedjango/db/backends/utils.py:793 ms2.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms2.0%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms2.0%
Cursor.executepsycopg/cursor.py:1133 ms2.0%
Connection.waitpsycopg/connection.py:4953 ms2.0%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(11 ms7.0%
Client.postdjango/test/client.py:115311 ms7.0%
RequestFactory.postdjango/test/client.py:49911 ms7.0%
RequestFactory.genericdjango/test/client.py:67111 ms7.0%
Client.requestdjango/test/client.py:108211 ms7.0%
ClientHandler.__call__django/test/client.py:18611 ms7.0%
BaseHandler.get_responsedjango/core/handlers/base.py:14111 ms7.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms7.0%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13011 ms7.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms7.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms7.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms7.0%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12311 ms7.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms7.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms7.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms7.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms7.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms7.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms7.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms7.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms7.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms7.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms7.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms7.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms7.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms7.0%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3411 ms7.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms7.0%
BaseHandler._get_responsedjango/core/handlers/base.py:19811 ms7.0%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:6511 ms7.0%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:3711 ms7.0%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:6411 ms7.0%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:75 return view_func(request, *args, **kwargs)7 ms4.0%
profile_uploadapps/api/urls.py:163 url = request.build_absolute_uri(project.url("project_profile", profile.number))2 ms1.0%
Project.urlapps/projects/models.py:59 return reverse(name, args=[self.organization.slug, self.slug, *args])2 ms1.0%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2572 ms1.0%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2222 ms1.0%
QuerySet.getdjango/db/models/query.py:6352 ms1.0%
QuerySet.__len__django/db/models/query.py:3722 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
profile_uploadapps/api/urls.py:1502 ms1.0%
get_or_create_numberedapps/projects/models.py:18 existing = model.objects.filter(project=project, **lookup).first()2 ms1.0%
QuerySet.firstdjango/db/models/query.py:11452 ms1.0%
QuerySet.__iter__django/db/models/query.py:3902 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
profile_uploadapps/api/urls.py:152 part = ProfilePart.objects.filter(profile=profile, index=index).order_by("-id").first()2 ms1.0%
QuerySet.firstdjango/db/models/query.py:11452 ms1.0%
QuerySet.__iter__django/db/models/query.py:3902 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
profile_uploadapps/api/urls.py:154 part = ProfilePart.objects.create(2 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.createdjango/db/models/query.py:6692 ms1.0%
Model.savedjango/db/models/base.py:8742 ms1.0%
Model.save_basedjango/db/models/base.py:9662 ms1.0%
Model._save_tabledjango/db/models/base.py:11672 ms1.0%
Model._do_insertdjango/db/models/base.py:12182 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet._insertdjango/db/models/query.py:19182 ms1.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:72 project = get_object_or_404(Project, secrettokens__token=request.headers.get("Authorization"))3 ms2.0%
get_object_or_404django/shortcuts.py:903 ms2.0%
QuerySet.getdjango/db/models/query.py:6252 ms1.0%
QuerySet.filterdjango/db/models/query.py:15422 ms1.0%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms1.0%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms1.0%
Query.add_qdjango/db/models/sql/query.py:16712 ms1.0%
Query._add_qdjango/db/models/sql/query.py:17032 ms1.0%
Query.build_filterdjango/db/models/sql/query.py:15772 ms1.0%
QuerySet.getdjango/db/models/query.py:6352 ms1.0%
QuerySet.__len__django/db/models/query.py:3722 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:73 touch_token(request.headers.get("Authorization"))2 ms1.0%
ProfileUploadTest.uploadapps/api/tests.py:485 body = json.dumps(body).encode()2 ms1.0%
dumps<stdlib>/json/__init__.py:2342 ms1.0%
JSONEncoder.encode<stdlib>/json/encoder.py:2022 ms1.0%
JSONEncoder.iterencode<stdlib>/json/encoder.py:2632 ms1.0%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:75834 ms21.1%
ProfileUploadTest.uploadapps/api/tests.py:49528 ms17.1%
_SharedTaskProxy.__call__potatoq/app.py:76328 ms17.1%
Task.__call__potatoq/task.py:18928 ms17.1%
process_profileapps/api/tasks.py:23916 ms10.1%
process_profile_partapps/projects/profiles.py:381 profile = claim_part(part, document)7 ms4.0%
Atomic.__enter__django/db/transaction.py:2112 ms1.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.0%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms1.0%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
claim_partapps/projects/profiles.py:4172 ms1.0%
get_or_create_environmentapps/projects/environments.py:63 obj, created = Environment.objects.get_or_create(2 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.get_or_createdjango/db/models/query.py:9872 ms1.0%
QuerySet.getdjango/db/models/query.py:6352 ms1.0%
QuerySet.__len__django/db/models/query.py:3722 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
claim_partapps/projects/profiles.py:422 commit, _ = Commit.objects.get_or_create(2 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.get_or_createdjango/db/models/query.py:9872 ms1.0%
QuerySet.getdjango/db/models/query.py:6352 ms1.0%
QuerySet.__len__django/db/models/query.py:3722 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
claim_partapps/projects/profiles.py:4852 ms1.0%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)2 ms1.0%
Model.savedjango/db/models/base.py:8742 ms1.0%
Model.save_basedjango/db/models/base.py:9662 ms1.0%
Model._save_tabledjango/db/models/base.py:11102 ms1.0%
Model._do_updatedjango/db/models/base.py:12112 ms1.0%
QuerySet._updatedjango/db/models/query.py:13272 ms1.0%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms1.0%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
process_profile_partapps/projects/profiles.py:3833 ms2.0%
upsert_testsapps/projects/profiles.py:4903 ms2.0%
TestManager.upsertapps/projects/models.py:2292 ms1.0%
TestManager.slugs_forapps/projects/models.py:240 existing = dict(self.filter(project_id=project_id, name__in=names).values_list("name", "slug"))2 ms1.0%
QuerySet.__iter__django/db/models/query.py:3902 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms1.0%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
TestManager.upsertapps/projects/models.py:230 self.bulk_create( # sorted, so uploads sharing tests lock their rows in the same order2 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms1.0%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms1.0%
QuerySet._insertdjango/db/models/query.py:19182 ms1.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
process_profile_partapps/projects/profiles.py:384 write_perfs(profile, part, entries, tests)3 ms2.0%
Atomic.__enter__django/db/transaction.py:2112 ms1.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.0%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms1.0%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
write_perfsapps/projects/profiles.py:497 TestPerf.objects.bulk_create(2 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms1.0%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms1.0%
QuerySet._insertdjango/db/models/query.py:19182 ms1.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2052 ms1.0%
BaseCursor._convert_querypsycopg/_cursor_base.py:4652 ms1.0%
PostgresClientQuery.convertpsycopg/_queries.py:2892 ms1.0%
PostgresClientQuery.dumppsycopg/_queries.py:2992 ms1.0%
PostgresClientQuery.dump.<locals>.<genexpr>psycopg/_queries.py:3002 ms1.0%
process_profile_partapps/projects/profiles.py:374 part = ProfilePart.objects.filter(pk=part.pk).first()2 ms1.0%
QuerySet.firstdjango/db/models/query.py:11452 ms1.0%
QuerySet.__iter__django/db/models/query.py:3902 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
process_profile_partapps/projects/profiles.py:3852 ms1.0%
write_snapshotsapps/projects/profiles.py:352 cursor.executemany(SNAPSHOT_UPSERT, batch)2 ms1.0%
CursorWrapper.executemanydjango/db/backends/utils.py:842 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executemanydjango/db/backends/utils.py:1142 ms1.0%
Cursor.executemanypsycopg/cursor.py:1372 ms1.0%
Connection._pipeline_nolockpsycopg/connection.py:4722 ms1.0%
Pipeline.__exit__psycopg/_pipeline.py:732 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
process_profileapps/api/tasks.py:25310 ms6.0%
_SharedTaskProxy.__call__potatoq/app.py:76310 ms6.0%
Task.__call__potatoq/task.py:18910 ms6.0%
finalize_profile_partsapps/api/tasks.py:2598 ms5.0%
finalize_profileapps/projects/profiles.py:518 profile = Profile.objects.select_for_update(no_key=True).get(pk=profile_id)2 ms1.0%
QuerySet.getdjango/db/models/query.py:6352 ms1.0%
QuerySet.__len__django/db/models/query.py:3722 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms1.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms1.0%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms1.0%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms1.0%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms1.0%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5742 ms1.0%
finalize_profileapps/projects/profiles.py:527 ProfilePart.objects.filter(profile=profile).exclude(pk__in=[part.pk for part in current]).delete()2 ms1.0%
QuerySet.deletedjango/db/models/query.py:12382 ms1.0%
Collector.deletedjango/db/models/deletion.py:4712 ms1.0%
QuerySet._raw_deletedjango/db/models/query.py:12602 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
finalize_profileapps/projects/profiles.py:531 for duplicate in duplicates:2 ms1.0%
QuerySet.__iter__django/db/models/query.py:3902 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ValuesIterable.__iter__django/db/models/query.py:2222 ms1.0%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms1.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:9782 ms1.0%
finalize_profileapps/projects/profiles.py:5352 ms1.0%
add_perfsapps/projects/rollups.py:64 for row in TestDailyStats.objects.filter(2 ms1.0%
QuerySet.__iter__django/db/models/query.py:3902 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms1.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7952 ms1.0%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms1.0%
WhereNode.as_sqldjango/db/models/sql/where.py:1512 ms1.0%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms1.0%
In.as_sqldjango/db/models/lookups.py:5562 ms1.0%
BuiltinLookup.as_sqldjango/db/models/lookups.py:2382 ms1.0%
BuiltinLookup.process_lhsdjango/db/models/lookups.py:2302 ms1.0%
Lookup.process_lhsdjango/db/models/lookups.py:1092 ms1.0%
BaseExpression.resolve_expressiondjango/db/models/expressions.py:2972 ms1.0%
BaseExpression.copydjango/db/models/expressions.py:4442 ms1.0%
copy<stdlib>/copy.py:1002 ms1.0%
finalize_profileapps/projects/profiles.py:5432 ms1.0%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)2 ms1.0%
Model.savedjango/db/models/base.py:8742 ms1.0%
Model.save_basedjango/db/models/base.py:9662 ms1.0%
Model._save_tabledjango/db/models/base.py:11102 ms1.0%
Model._do_updatedjango/db/models/base.py:12112 ms1.0%
QuerySet._updatedjango/db/models/query.py:13272 ms1.0%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms1.0%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
finalize_profile_partsapps/api/tasks.py:2602 ms1.0%
Task.delaypotatoq/task.py:2572 ms1.0%
Task.apply_asyncpotatoq/task.py:2732 ms1.0%
Task._check_argumentspotatoq/task.py:3882 ms1.0%
signature<stdlib>/inspect.py:33432 ms1.0%
Signature.from_callable<stdlib>/inspect.py:30582 ms1.0%
_signature_from_callable<stdlib>/inspect.py:25282 ms1.0%
_signature_from_function<stdlib>/inspect.py:23632 ms1.0%
process_profileapps/api/tasks.py:237 part = ProfilePart.objects.select_related("profile").get(id=part_id)2 ms1.0%
QuerySet.getdjango/db/models/query.py:6352 ms1.0%
QuerySet.__len__django/db/models/query.py:3722 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(7 ms4.0%
Client.postdjango/test/client.py:11537 ms4.0%
RequestFactory.postdjango/test/client.py:4997 ms4.0%
RequestFactory.genericdjango/test/client.py:6717 ms4.0%
Client.requestdjango/test/client.py:10827 ms4.0%
ClientHandler.__call__django/test/client.py:1867 ms4.0%
BaseHandler.get_responsedjango/core/handlers/base.py:1417 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms4.0%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1307 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms4.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms4.0%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1237 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms4.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms4.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms4.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms4.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms4.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms4.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms4.0%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:347 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms4.0%
BaseHandler._get_responsedjango/core/handlers/base.py:1987 ms4.0%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:657 ms4.0%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:377 ms4.0%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:647 ms4.0%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:75 return view_func(request, *args, **kwargs)3 ms2.0%
profile_uploadapps/api/urls.py:154 part = ProfilePart.objects.create(2 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.createdjango/db/models/query.py:6692 ms1.0%
Model.savedjango/db/models/base.py:8742 ms1.0%
Model.save_basedjango/db/models/base.py:9662 ms1.0%
Model._save_tabledjango/db/models/base.py:11672 ms1.0%
Model._do_insertdjango/db/models/base.py:12182 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet._insertdjango/db/models/query.py:19182 ms1.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
profile_uploadapps/api/urls.py:163 url = request.build_absolute_uri(project.url("project_profile", profile.number))2 ms1.0%
Project.urlapps/projects/models.py:59 return reverse(name, args=[self.organization.slug, self.slug, *args])2 ms1.0%
reversedjango/urls/base.py:982 ms1.0%
URLResolver._reverse_with_prefixdjango/urls/resolvers.py:7892 ms1.0%
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.0%
get_object_or_404django/shortcuts.py:902 ms1.0%
QuerySet.getdjango/db/models/query.py:6352 ms1.0%
QuerySet.__len__django/db/models/query.py:3722 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:73 touch_token(request.headers.get("Authorization"))2 ms1.0%
touch_tokenapps/api/urls.py:59 SecretTokens.objects.filter(pk__in=list(stale)).update(date_last_used=now)2 ms1.0%
QuerySet.__iter__django/db/models/query.py:3902 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
FlatValuesListIterable.__iter__django/db/models/query.py:2772 ms1.0%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:75420 ms12.1%
ProfileUploadTest.uploadapps/api/tests.py:49518 ms11.1%
_SharedTaskProxy.__call__potatoq/app.py:76318 ms11.1%
Task.__call__potatoq/task.py:18918 ms11.1%
process_profileapps/api/tasks.py:23915 ms9.0%
process_profile_partapps/projects/profiles.py:381 profile = claim_part(part, document)8 ms5.0%
claim_partapps/projects/profiles.py:399 ProfilePart.objects.filter(profile=profile, index=part.index, id__lt=part.id).delete() # superseded uploads3 ms2.0%
QuerySet.deletedjango/db/models/query.py:12383 ms2.0%
Collector.deletedjango/db/models/deletion.py:4713 ms2.0%
QuerySet._raw_deletedjango/db/models/query.py:12603 ms2.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms2.0%
CursorWrapper.executedjango/db/backends/utils.py:793 ms2.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms2.0%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms2.0%
Cursor.executepsycopg/cursor.py:1133 ms2.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
claim_partapps/projects/profiles.py:398 ProfilePart.objects.filter(pk=part.pk).update(status=ProfilePart.StatusTypes.PENDING)2 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.filterdjango/db/models/query.py:15422 ms1.0%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms1.0%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms1.0%
Query.add_qdjango/db/models/sql/query.py:16712 ms1.0%
Query._add_qdjango/db/models/sql/query.py:17032 ms1.0%
Query.build_filterdjango/db/models/sql/query.py:15882 ms1.0%
Query.check_related_objectsdjango/db/models/sql/query.py:13812 ms1.0%
claim_partapps/projects/profiles.py:422 commit, _ = Commit.objects.get_or_create(2 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.get_or_createdjango/db/models/query.py:9872 ms1.0%
QuerySet.getdjango/db/models/query.py:6352 ms1.0%
QuerySet.__len__django/db/models/query.py:3722 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms1.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms1.0%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms1.0%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms1.0%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms1.0%
claim_partapps/projects/profiles.py:4852 ms1.0%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)2 ms1.0%
Model.savedjango/db/models/base.py:8742 ms1.0%
Model.save_basedjango/db/models/base.py:9662 ms1.0%
Model._save_tabledjango/db/models/base.py:11102 ms1.0%
Model._do_updatedjango/db/models/base.py:12112 ms1.0%
QuerySet._updatedjango/db/models/query.py:13272 ms1.0%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms1.0%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
process_profile_partapps/projects/profiles.py:384 write_perfs(profile, part, entries, tests)3 ms2.0%
Atomic.__enter__django/db/transaction.py:2112 ms1.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.0%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms1.0%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3662 ms1.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.0%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3202 ms1.0%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2982 ms1.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.0%
write_perfsapps/projects/profiles.py:497 TestPerf.objects.bulk_create(2 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms1.0%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms1.0%
QuerySet._insertdjango/db/models/query.py:19182 ms1.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
process_profile_partapps/projects/profiles.py:374 part = ProfilePart.objects.filter(pk=part.pk).first()2 ms1.0%
QuerySet.firstdjango/db/models/query.py:11452 ms1.0%
QuerySet.__iter__django/db/models/query.py:3902 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
process_profile_partapps/projects/profiles.py:3832 ms1.0%
upsert_testsapps/projects/profiles.py:4902 ms1.0%
TestManager.upsertapps/projects/models.py:2292 ms1.0%
TestManager.slugs_forapps/projects/models.py:240 existing = dict(self.filter(project_id=project_id, name__in=names).values_list("name", "slug"))2 ms1.0%
QuerySet.__iter__django/db/models/query.py:3902 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms1.0%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
process_profileapps/api/tasks.py:237 part = ProfilePart.objects.select_related("profile").get(id=part_id)2 ms1.0%
QuerySet.getdjango/db/models/query.py:6352 ms1.0%
QuerySet.__len__django/db/models/query.py:3722 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
process_profileapps/api/tasks.py:2532 ms1.0%
_SharedTaskProxy.__call__potatoq/app.py:7632 ms1.0%
Task.__call__potatoq/task.py:1892 ms1.0%
finalize_profile_partsapps/api/tasks.py:2592 ms1.0%
finalize_profileapps/projects/profiles.py:522 for part in ProfilePart.objects.filter(profile=profile).defer("document").order_by("index", "id"):2 ms1.0%
QuerySet.__iter__django/db/models/query.py:3902 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(2 ms1.0%
Client.postdjango/test/client.py:11532 ms1.0%
RequestFactory.postdjango/test/client.py:4992 ms1.0%
RequestFactory.genericdjango/test/client.py:6712 ms1.0%
Client.requestdjango/test/client.py:10822 ms1.0%
ClientHandler.__call__django/test/client.py:1862 ms1.0%
BaseHandler.get_responsedjango/core/handlers/base.py:1412 ms1.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms1.0%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1302 ms1.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms1.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms1.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms1.0%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1232 ms1.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms1.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms1.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms1.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms1.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms1.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms1.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms1.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms1.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms1.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms1.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms1.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms1.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms1.0%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:342 ms1.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms1.0%
BaseHandler._get_responsedjango/core/handlers/base.py:1982 ms1.0%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:652 ms1.0%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:372 ms1.0%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:642 ms1.0%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:75 return view_func(request, *args, **kwargs)2 ms1.0%
profile_uploadapps/api/urls.py:1502 ms1.0%
get_or_create_numberedapps/projects/models.py:18 existing = model.objects.filter(project=project, **lookup).first()2 ms1.0%
QuerySet.firstdjango/db/models/query.py:11452 ms1.0%
QuerySet.__iter__django/db/models/query.py:3902 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms1.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms1.0%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms1.0%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms1.0%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms1.0%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms1.0%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7735 ms3.0%
_SharedTaskProxy.__call__potatoq/app.py:7635 ms3.0%
Task.__call__potatoq/task.py:1895 ms3.0%
finalize_profile_partsapps/api/tasks.py:2593 ms2.0%
finalize_profileapps/projects/profiles.py:518 profile = Profile.objects.select_for_update(no_key=True).get(pk=profile_id)2 ms1.0%
QuerySet.getdjango/db/models/query.py:6352 ms1.0%
QuerySet.__len__django/db/models/query.py:3722 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:1272 ms1.0%
finalize_profileapps/projects/profiles.py:5432 ms1.0%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)2 ms1.0%
Model.savedjango/db/models/base.py:8742 ms1.0%
Model.save_basedjango/db/models/base.py:9662 ms1.0%
Model._save_tabledjango/db/models/base.py:11102 ms1.0%
Model._do_updatedjango/db/models/base.py:11882 ms1.0%
QuerySet.filterdjango/db/models/query.py:15422 ms1.0%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms1.0%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms1.0%
Query.add_qdjango/db/models/sql/query.py:16712 ms1.0%
Query._add_qdjango/db/models/sql/query.py:17032 ms1.0%
Query.build_filterdjango/db/models/sql/query.py:15512 ms1.0%
Query.solve_lookup_typedjango/db/models/sql/query.py:13652 ms1.0%
finalize_profile_partsapps/api/tasks.py:2602 ms1.0%
QuerySet.getdjango/db/models/query.py:6352 ms1.0%
QuerySet.__len__django/db/models/query.py:3722 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
FlatValuesListIterable.__iter__django/db/models/query.py:2772 ms1.0%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2052 ms1.0%
BaseCursor._convert_querypsycopg/_cursor_base.py:4652 ms1.0%
PostgresClientQuery.convertpsycopg/_queries.py:2892 ms1.0%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7643 ms2.0%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(3 ms2.0%
Client.postdjango/test/client.py:11533 ms2.0%
RequestFactory.postdjango/test/client.py:4993 ms2.0%
RequestFactory.genericdjango/test/client.py:6713 ms2.0%
Client.requestdjango/test/client.py:10823 ms2.0%
ClientHandler.__call__django/test/client.py:1863 ms2.0%
BaseHandler.get_responsedjango/core/handlers/base.py:1413 ms2.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.0%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1303 ms2.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms2.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.0%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1233 ms2.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms2.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms2.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms2.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms2.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms2.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms2.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.0%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:343 ms2.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.0%
BaseHandler._get_responsedjango/core/handlers/base.py:1983 ms2.0%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:653 ms2.0%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:373 ms2.0%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:643 ms2.0%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:75 return view_func(request, *args, **kwargs)3 ms2.0%
profile_uploadapps/api/urls.py:1502 ms1.0%
get_or_create_numberedapps/projects/models.py:18 existing = model.objects.filter(project=project, **lookup).first()2 ms1.0%
QuerySet.firstdjango/db/models/query.py:11452 ms1.0%
QuerySet.__iter__django/db/models/query.py:3902 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms1.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms1.0%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms1.0%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms1.0%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3302 ms1.0%
profile_uploadapps/api/urls.py:163 url = request.build_absolute_uri(project.url("project_profile", profile.number))2 ms1.0%
Project.urlapps/projects/models.py:59 return reverse(name, args=[self.organization.slug, self.slug, *args])2 ms1.0%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2572 ms1.0%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2222 ms1.0%
QuerySet.getdjango/db/models/query.py:6352 ms1.0%
QuerySet.__len__django/db/models/query.py:3722 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7512 ms1.0%
ProfileUploadTest.documentapps/api/tests.py:5002 ms1.0%
make_test_entryapps/projects/testing.py:1712 ms1.0%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7562 ms1.0%
ProfileUploadTest.daily_runsapps/api/tests.py:7482 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.values_listdjango/db/models/query.py:14582 ms1.0%
QuerySet._valuesdjango/db/models/query.py:14092 ms1.0%
Query.set_valuesdjango/db/models/sql/query.py:26052 ms1.0%
Query.add_fieldsdjango/db/models/sql/query.py:22662 ms1.0%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7612 ms1.0%
ProfileUploadTest.daily_runsapps/api/tests.py:7482 ms1.0%
QuerySet.__iter__django/db/models/query.py:3902 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms1.0%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms1.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms1.0%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms1.0%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms1.0%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms1.0%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms1.0%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7662 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.countdjango/db/models/query.py:6102 ms1.0%
Query.get_countdjango/db/models/sql/query.py:6512 ms1.0%
Query.get_aggregationdjango/db/models/sql/query.py:6332 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7722 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.countdjango/db/models/query.py:6102 ms1.0%
Query.get_countdjango/db/models/sql/query.py:6512 ms1.0%
Query.get_aggregationdjango/db/models/sql/query.py:6332 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7742 ms1.0%
Model.refresh_from_dbdjango/db/models/base.py:7582 ms1.0%
QuerySet.getdjango/db/models/query.py:6352 ms1.0%
QuerySet.__len__django/db/models/query.py:3722 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.0%
ModelIterable.__iter__django/db/models/query.py:952 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms1.0%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms1.0%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
Estimated from 99 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
20 ms
apps/projects/models.py:466
super().save(*args, **kwargs)
Profile.save · Database
11 ms
apps/api/tasks.py:237
part = ProfilePart.objects.select_related("profile").get(id=part_id)
process_profile · Database
8 ms
apps/projects/profiles.py:422
commit, _ = Commit.objects.get_or_create(
claim_part · Database
8 ms
apps/projects/models.py:18
existing = model.objects.filter(project=project, **lookup).first()
get_or_create_numbered · Database
7 ms
apps/projects/profiles.py:374
part = ProfilePart.objects.filter(pk=part.pk).first()
process_profile_part · Database
7 ms
apps/projects/profiles.py:497
TestPerf.objects.bulk_create(
write_perfs · Database
7 ms
apps/api/urls.py:154
part = ProfilePart.objects.create(
profile_upload · Database
5 ms
apps/projects/profiles.py:415
project = profile.project
claim_part · Database
5 ms
apps/projects/environments.py:63
obj, created = Environment.objects.get_or_create(
get_or_create_environment · Database
5 ms

Fixtures

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

Database

224 queries · 58 ms

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

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

Biggest pieces of work

call test body
apps/api/tests.py:753
160 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 163 ms cb18ed3 main Profile
2 weeks, 4 days ago CI github-actions:test passed 225 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 124 ms 19dac9b main Profile
3 weeks ago CI github-actions:test passed 216 ms e141198 main Profile
1 month ago CI github-actions:test passed 124 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 210 ms afde85b main Profile
1 month ago CI github-actions:test passed 162 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 235 ms 044719a main Profile
1 month ago CI github-actions:test passed 142 ms b3fedae main Profile
1 month, 1 week ago CI github-actions:test passed 222 ms 43c4eda main Profile
1 month, 1 week ago CI github-actions:test passed 215 ms 9caa567 main Profile
1 month, 1 week ago CI github-actions:test passed 217 ms ec75501 main Profile
1 month, 1 week ago CI github-actions:test passed 250 ms d2c12e5 main Profile
1 month, 1 week ago CI github-actions:test passed 135 ms 0b902f6 main Profile
1 month, 1 week ago CI github-actions:test passed 224 ms 78a4357 main Profile