Tests / apps/api/tests.py
ProfileUploadTest::test_daily_stats_count_a_profile_once_every_part_is_in
First seen 3 weeks ago in 78a4357
CI
github-actions:test
12 runs
Average
196 ms
median 215 ms
max 250 ms
max 250 ms
Phases
Setup 0.71 ms
Call 195 ms
Teardown 0.16 ms
Categories
Database 156 ms
App code 3 ms
Test code 0.54 ms
Other (Libraries, Unsampled, Serialization, pytest) 36 ms
224 database queries per run
Needs 80 KB of memory (max 548 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 16 hours ago ·
open run
call215 ms99.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:753 self.upload(first)83 ms38.3%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(68 ms31.4%
Client.postdjango/test/client.py:115368 ms31.4%
RequestFactory.postdjango/test/client.py:49968 ms31.4%
RequestFactory.genericdjango/test/client.py:67168 ms31.4%
Client.requestdjango/test/client.py:108268 ms31.4%
ClientHandler.__call__django/test/client.py:18639 ms18.1%
BaseHandler.get_responsedjango/core/handlers/base.py:14139 ms18.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5539 ms18.1%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13039 ms18.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5539 ms18.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30939 ms18.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5539 ms18.1%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12339 ms18.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5539 ms18.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30939 ms18.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5539 ms18.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30939 ms18.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5539 ms18.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30939 ms18.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5539 ms18.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30939 ms18.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5539 ms18.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30939 ms18.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5539 ms18.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30939 ms18.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5539 ms18.1%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3439 ms18.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5539 ms18.1%
BaseHandler._get_responsedjango/core/handlers/base.py:19839 ms18.1%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:6539 ms18.1%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:3739 ms18.1%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:6439 ms18.1%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:7539 ms18.1%
profile_uploadapps/api/urls.py:15918 ms8.4%
compressapps/projects/profiles.py:111 return gzip.compress(data, compresslevel=6)18 ms8.4%
compress<stdlib>/gzip.py:66818 ms8.4%
profile_uploadapps/api/urls.py:152 part = ProfilePart.objects.filter(profile=profile, index=index).order_by("-id").first()18 ms8.4%
QuerySet.firstdjango/db/models/query.py:114518 ms8.4%
QuerySet.__iter__django/db/models/query.py:39018 ms8.4%
QuerySet._fetch_alldjango/db/models/query.py:200018 ms8.4%
ModelIterable.__iter__django/db/models/query.py:9518 ms8.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162418 ms8.4%
CursorWrapper.executedjango/db/backends/utils.py:7918 ms8.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9218 ms8.4%
CursorWrapper._executedjango/db/backends/utils.py:10518 ms8.4%
Cursor.executepsycopg/cursor.py:11318 ms8.4%
Connection.waitpsycopg/connection.py:49518 ms8.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:20618 ms8.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28617 ms7.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7817 ms7.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3122 ms0.7%
profile_uploadapps/api/urls.py:154 part = ProfilePart.objects.create(2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.createdjango/db/models/query.py:6692 ms0.7%
Model.savedjango/db/models/base.py:8742 ms0.7%
Model.save_basedjango/db/models/base.py:9662 ms0.7%
Model._save_tabledjango/db/models/base.py:11672 ms0.7%
Model._do_insertdjango/db/models/base.py:12182 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet._insertdjango/db/models/query.py:19182 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
profile_uploadapps/api/urls.py:1632 ms0.7%
Project.urlapps/projects/models.py:59 return reverse(name, args=[self.organization.slug, self.slug, *args])2 ms0.7%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2572 ms0.7%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2222 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
ClientHandler.__call__django/test/client.py:17329 ms13.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6229 ms13.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10421 ms9.8%
WhiteNoise.add_fileswhitenoise/base.py:10821 ms9.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms0.7%
scantreewhitenoise/base.py:2622 ms0.7%
scantreewhitenoise/base.py:2622 ms0.7%
scantreewhitenoise/base.py:2622 ms0.7%
scantreewhitenoise/base.py:2622 ms0.7%
scantreewhitenoise/base.py:2642 ms0.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1116 ms2.8%
WhiteNoise.add_fileswhitenoise/base.py:1086 ms2.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1205 ms2.1%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1315 ms2.1%
WhiteNoise.get_static_filewhitenoise/base.py:2085 ms2.1%
StaticFile.__init__whitenoise/responders.py:735 ms2.1%
StaticFile.get_headerswhitenoise/responders.py:1763 ms1.4%
formatdate<stdlib>/email/utils.py:2663 ms1.4%
format_datetime<stdlib>/email/utils.py:2842 ms0.7%
StaticFile.get_headerswhitenoise/responders.py:1782 ms0.7%
parsedate<stdlib>/email/_parseaddr.py:1852 ms0.7%
parsedate_tz<stdlib>/email/_parseaddr.py:502 ms0.7%
_parsedate_tz<stdlib>/email/_parseaddr.py:1632 ms0.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms0.7%
scantreewhitenoise/base.py:2602 ms0.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1072 ms0.7%
ProfileUploadTest.uploadapps/api/tests.py:49515 ms7.0%
_SharedTaskProxy.__call__potatoq/app.py:76315 ms7.0%
Task.__call__potatoq/task.py:18915 ms7.0%
process_profileapps/api/tasks.py:23914 ms6.3%
process_profile_partapps/projects/profiles.py:363 profile = claim_part(part, document)6 ms2.8%
Atomic.__enter__django/db/transaction.py:2112 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms0.7%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms0.7%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
claim_partapps/projects/profiles.py:379 profile = Profile.objects.select_for_update(no_key=True).get(pk=part.profile_id)2 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:1282 ms0.7%
Model.from_dbdjango/db/models/base.py:6052 ms0.7%
Model.__init__django/db/models/base.py:5132 ms0.7%
claim_partapps/projects/profiles.py:381 ProfilePart.objects.filter(profile=profile, index=part.index, id__lt=part.id).delete() # superseded uploads2 ms0.7%
QuerySet.deletedjango/db/models/query.py:12382 ms0.7%
Collector.deletedjango/db/models/deletion.py:4712 ms0.7%
QuerySet._raw_deletedjango/db/models/query.py:12602 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
claim_partapps/projects/profiles.py:404 commit, _ = Commit.objects.get_or_create(2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.get_or_createdjango/db/models/query.py:9872 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2052 ms0.7%
BaseCursor._convert_querypsycopg/_cursor_base.py:4652 ms0.7%
PostgresClientQuery.convertpsycopg/_queries.py:2892 ms0.7%
process_profile_partapps/projects/profiles.py:3653 ms1.4%
upsert_testsapps/projects/profiles.py:4723 ms1.4%
TestManager.upsertapps/projects/models.py:2293 ms1.4%
TestManager.slugs_forapps/projects/models.py:240 existing = dict(self.filter(project_id=project_id, name__in=names).values_list("name", "slug"))2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.filterdjango/db/models/query.py:15422 ms0.7%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms0.7%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms0.7%
Query.add_qdjango/db/models/sql/query.py:16712 ms0.7%
Query._add_qdjango/db/models/sql/query.py:17032 ms0.7%
Query.build_filterdjango/db/models/sql/query.py:15992 ms0.7%
Query.trim_joinsdjango/db/models/sql/query.py:20212 ms0.7%
TestManager.slugs_forapps/projects/models.py:242 taken = set(self.filter(project_id=project_id, slug__in=set(new.values())).values_list("slug", flat=True))2 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
FlatValuesListIterable.__iter__django/db/models/query.py:2772 ms0.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profile_partapps/projects/profiles.py:3662 ms0.7%
write_perfsapps/projects/profiles.py:479 TestPerf.objects.bulk_create(2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms0.7%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms0.7%
QuerySet._insertdjango/db/models/query.py:19182 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profile_partapps/projects/profiles.py:3672 ms0.7%
write_snapshotsapps/projects/profiles.py:334 cursor.executemany(SNAPSHOT_UPSERT, batch)2 ms0.7%
CursorWrapper.executemanydjango/db/backends/utils.py:842 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executemanydjango/db/backends/utils.py:1142 ms0.7%
Cursor.executemanypsycopg/cursor.py:1382 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._executemany_gen_pipelinepsycopg/_cursor_base.py:2392 ms0.7%
BasePipeline._communicate_genpsycopg/_pipeline_base.py:1122 ms0.7%
process_profile_partapps/projects/profiles.py:368 ProfilePart.objects.filter(pk=part.pk).update(2 ms0.7%
QuerySet.updatedjango/db/models/query.py:13002 ms0.7%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profileapps/api/tasks.py:2532 ms0.7%
_SharedTaskProxy.__call__potatoq/app.py:7632 ms0.7%
Task.__call__potatoq/task.py:1892 ms0.7%
finalize_profile_partsapps/api/tasks.py:2592 ms0.7%
finalize_profileapps/projects/profiles.py:500 profile = Profile.objects.select_for_update(no_key=True).get(pk=profile_id)2 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:76942 ms19.5%
ProfileUploadTest.uploadapps/api/tests.py:49523 ms10.5%
_SharedTaskProxy.__call__potatoq/app.py:76323 ms10.5%
Task.__call__potatoq/task.py:18923 ms10.5%
process_profileapps/api/tasks.py:23921 ms9.8%
process_profile_partapps/projects/profiles.py:363 profile = claim_part(part, document)12 ms5.6%
Atomic.__exit__django/db/transaction.py:2475 ms2.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms2.1%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4315 ms2.1%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3755 ms2.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.4%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms1.4%
Cursor.executepsycopg/cursor.py:1133 ms1.4%
Connection.waitpsycopg/connection.py:4953 ms1.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms1.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms1.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms1.4%
claim_partapps/projects/profiles.py:4673 ms1.4%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)3 ms1.4%
Model.savedjango/db/models/base.py:8743 ms1.4%
Model.save_basedjango/db/models/base.py:9663 ms1.4%
Model._save_tabledjango/db/models/base.py:11103 ms1.4%
Model._do_updatedjango/db/models/base.py:12112 ms0.7%
QuerySet._updatedjango/db/models/query.py:13272 ms0.7%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms0.7%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
Model._do_updatedjango/db/models/base.py:11882 ms0.7%
QuerySet.filterdjango/db/models/query.py:15422 ms0.7%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms0.7%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms0.7%
claim_partapps/projects/profiles.py:379 profile = Profile.objects.select_for_update(no_key=True).get(pk=part.profile_id)2 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms0.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms0.7%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms0.7%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:2552 ms0.7%
SQLCompiler.get_default_columnsdjango/db/models/sql/compiler.py:10302 ms0.7%
claim_partapps/projects/profiles.py:380 ProfilePart.objects.filter(pk=part.pk).update(status=ProfilePart.StatusTypes.PENDING)2 ms0.7%
QuerySet.updatedjango/db/models/query.py:13002 ms0.7%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
SQLUpdateCompiler.as_sqldjango/db/models/sql/compiler.py:20882 ms0.7%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms0.7%
WhereNode.as_sqldjango/db/models/sql/where.py:1512 ms0.7%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms0.7%
Exact.as_sqldjango/db/models/lookups.py:4072 ms0.7%
BuiltinLookup.as_sqldjango/db/models/lookups.py:2382 ms0.7%
BuiltinLookup.process_lhsdjango/db/models/lookups.py:2302 ms0.7%
Lookup.process_lhsdjango/db/models/lookups.py:1092 ms0.7%
BaseExpression.resolve_expressiondjango/db/models/expressions.py:2972 ms0.7%
BaseExpression.copydjango/db/models/expressions.py:4442 ms0.7%
copy<stdlib>/copy.py:1002 ms0.7%
claim_partapps/projects/profiles.py:381 ProfilePart.objects.filter(profile=profile, index=part.index, id__lt=part.id).delete() # superseded uploads2 ms0.7%
QuerySet.deletedjango/db/models/query.py:12382 ms0.7%
Collector.deletedjango/db/models/deletion.py:4712 ms0.7%
QuerySet._raw_deletedjango/db/models/query.py:12602 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
process_profile_partapps/projects/profiles.py:3655 ms2.1%
upsert_testsapps/projects/profiles.py:4725 ms2.1%
TestManager.upsertapps/projects/models.py:2292 ms0.7%
TestManager.slugs_forapps/projects/models.py:240 existing = dict(self.filter(project_id=project_id, name__in=names).values_list("name", "slug"))2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.filterdjango/db/models/query.py:15422 ms0.7%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms0.7%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms0.7%
Query.add_qdjango/db/models/sql/query.py:16712 ms0.7%
TestManager.upsertapps/projects/models.py:230 self.bulk_create( # sorted, so uploads sharing tests lock their rows in the same order2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms0.7%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms0.7%
QuerySet._insertdjango/db/models/query.py:19182 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
TestManager.upsertapps/projects/models.py:236 return {test.name: test for test in self.filter(project=project, name__in=names)}2 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms0.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms0.7%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms0.7%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:2552 ms0.7%
SQLCompiler.get_default_columnsdjango/db/models/sql/compiler.py:10302 ms0.7%
process_profile_partapps/projects/profiles.py:359 or ProfilePart.objects.filter(profile_id=part.profile_id, index=part.index, id__gt=part.id).exists()2 ms0.7%
QuerySet.existsdjango/db/models/query.py:13372 ms0.7%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms0.7%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
process_profile_partapps/projects/profiles.py:3662 ms0.7%
write_perfsapps/projects/profiles.py:479 TestPerf.objects.bulk_create(2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms0.7%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms0.7%
QuerySet._insertdjango/db/models/query.py:19182 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profile_partapps/projects/profiles.py:3672 ms0.7%
write_snapshotsapps/projects/profiles.py:334 cursor.executemany(SNAPSHOT_UPSERT, batch)2 ms0.7%
CursorWrapper.executemanydjango/db/backends/utils.py:842 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executemanydjango/db/backends/utils.py:1142 ms0.7%
Cursor.executemanypsycopg/cursor.py:1372 ms0.7%
Connection._pipeline_nolockpsycopg/connection.py:4722 ms0.7%
Pipeline.__exit__psycopg/_pipeline.py:732 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profileapps/api/tasks.py:237 part = ProfilePart.objects.select_related("profile").get(id=part_id)2 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(20 ms9.1%
Client.postdjango/test/client.py:115320 ms9.1%
RequestFactory.postdjango/test/client.py:49920 ms9.1%
RequestFactory.genericdjango/test/client.py:67120 ms9.1%
Client.requestdjango/test/client.py:108220 ms9.1%
ClientHandler.__call__django/test/client.py:18620 ms9.1%
BaseHandler.get_responsedjango/core/handlers/base.py:14120 ms9.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms9.1%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13020 ms9.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms9.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30920 ms9.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms9.1%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12320 ms9.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms9.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30920 ms9.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms9.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30920 ms9.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms9.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30920 ms9.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms9.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30920 ms9.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms9.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30920 ms9.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms9.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30920 ms9.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms9.1%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3420 ms9.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms9.1%
BaseHandler._get_responsedjango/core/handlers/base.py:19820 ms9.1%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:6520 ms9.1%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:3720 ms9.1%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:6420 ms9.1%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:7515 ms7.0%
profile_uploadapps/api/urls.py:1508 ms3.5%
get_or_create_numberedapps/projects/models.py:18 existing = model.objects.filter(project=project, **lookup).first()8 ms3.5%
QuerySet.firstdjango/db/models/query.py:11458 ms3.5%
QuerySet.__iter__django/db/models/query.py:3908 ms3.5%
QuerySet._fetch_alldjango/db/models/query.py:20008 ms3.5%
ModelIterable.__iter__django/db/models/query.py:958 ms3.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16115 ms2.1%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7675 ms2.1%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:865 ms2.1%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:755 ms2.1%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:2553 ms1.4%
SQLCompiler.get_default_columnsdjango/db/models/sql/compiler.py:10012 ms0.7%
Query.get_initial_aliasdjango/db/models/sql/query.py:11132 ms0.7%
cached_property.__get__django/utils/functional.py:472 ms0.7%
Query.base_tabledjango/db/models/sql/query.py:3382 ms0.7%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms1.4%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.4%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms1.4%
Cursor.executepsycopg/cursor.py:1133 ms1.4%
Connection.waitpsycopg/connection.py:4953 ms1.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms0.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms0.7%
profile_uploadapps/api/urls.py:1633 ms1.4%
Project.urlapps/projects/models.py:59 return reverse(name, args=[self.organization.slug, self.slug, *args])3 ms1.4%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2573 ms1.4%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2223 ms1.4%
QuerySet.getdjango/db/models/query.py:6353 ms1.4%
QuerySet.__len__django/db/models/query.py:3723 ms1.4%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms1.4%
ModelIterable.__iter__django/db/models/query.py:953 ms1.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms1.4%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
profile_uploadapps/api/urls.py:152 part = ProfilePart.objects.filter(profile=profile, index=index).order_by("-id").first()2 ms0.7%
QuerySet.firstdjango/db/models/query.py:11452 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
profile_uploadapps/api/urls.py:154 part = ProfilePart.objects.create(2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.createdjango/db/models/query.py:6692 ms0.7%
Model.savedjango/db/models/base.py:8742 ms0.7%
Model.save_basedjango/db/models/base.py:9662 ms0.7%
Model._save_tabledjango/db/models/base.py:11672 ms0.7%
Model._do_insertdjango/db/models/base.py:12182 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet._insertdjango/db/models/query.py:19182 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
profile_uploadapps/api/urls.py:1372 ms0.7%
parse_documentapps/projects/profiles.py:802 ms0.7%
loadsapps/projects/profiles.py:118 document = json.loads(data)2 ms0.7%
loads<stdlib>/json/__init__.py:3712 ms0.7%
JSONDecoder.decode<stdlib>/json/decoder.py:3582 ms0.7%
JSONDecoder.raw_decode<stdlib>/json/decoder.py:3742 ms0.7%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:73 touch_token(request.headers.get("Authorization"))3 ms1.4%
Atomic.__exit__django/db/transaction.py:2473 ms1.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms0.7%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms0.7%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms0.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms0.7%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:72 project = get_object_or_404(Project, secrettokens__token=request.headers.get("Authorization"))2 ms0.7%
get_object_or_404django/shortcuts.py:902 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms0.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms0.7%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms0.7%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:2552 ms0.7%
SQLCompiler.get_default_columnsdjango/db/models/sql/compiler.py:10292 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:75832 ms14.6%
ProfileUploadTest.uploadapps/api/tests.py:49526 ms11.8%
_SharedTaskProxy.__call__potatoq/app.py:76326 ms11.8%
Task.__call__potatoq/task.py:18926 ms11.8%
process_profileapps/api/tasks.py:23914 ms6.3%
process_profile_partapps/projects/profiles.py:363 profile = claim_part(part, document)6 ms2.8%
claim_partapps/projects/profiles.py:379 profile = Profile.objects.select_for_update(no_key=True).get(pk=part.profile_id)2 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms0.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms0.7%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms0.7%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms0.7%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5742 ms0.7%
claim_partapps/projects/profiles.py:397 project = profile.project2 ms0.7%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2572 ms0.7%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2222 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
claim_partapps/projects/profiles.py:404 commit, _ = Commit.objects.get_or_create(2 ms0.7%
Atomic.__exit__django/db/transaction.py:2472 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms0.7%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms0.7%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profile_partapps/projects/profiles.py:3663 ms1.4%
Atomic.__enter__django/db/transaction.py:2112 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms0.7%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms0.7%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
write_perfsapps/projects/profiles.py:479 TestPerf.objects.bulk_create(2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms0.7%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms0.7%
QuerySet._insertdjango/db/models/query.py:19182 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2052 ms0.7%
BaseCursor._convert_querypsycopg/_cursor_base.py:4652 ms0.7%
PostgresClientQuery.convertpsycopg/_queries.py:2892 ms0.7%
PostgresClientQuery.dumppsycopg/_queries.py:2992 ms0.7%
process_profile_partapps/projects/profiles.py:356 part = ProfilePart.objects.filter(pk=part.pk).first()2 ms0.7%
QuerySet.firstdjango/db/models/query.py:11452 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms0.7%
process_profile_partapps/projects/profiles.py:3652 ms0.7%
upsert_testsapps/projects/profiles.py:4722 ms0.7%
TestManager.upsertapps/projects/models.py:230 self.bulk_create( # sorted, so uploads sharing tests lock their rows in the same order2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms0.7%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms0.7%
QuerySet._insertdjango/db/models/query.py:19182 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profile_partapps/projects/profiles.py:368 ProfilePart.objects.filter(pk=part.pk).update(2 ms0.7%
QuerySet.updatedjango/db/models/query.py:13002 ms0.7%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
process_profileapps/api/tasks.py:25312 ms5.6%
_SharedTaskProxy.__call__potatoq/app.py:76312 ms5.6%
Task.__call__potatoq/task.py:18912 ms5.6%
finalize_profile_partsapps/api/tasks.py:25912 ms5.6%
finalize_profileapps/projects/profiles.py:5173 ms1.4%
add_perfsapps/projects/rollups.py:64 for row in TestDailyStats.objects.filter(2 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
add_perfsapps/projects/rollups.py:88 TestDailyStats.objects.bulk_create(2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms0.7%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms0.7%
QuerySet._insertdjango/db/models/query.py:19182 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
finalize_profileapps/projects/profiles.py:500 profile = Profile.objects.select_for_update(no_key=True).get(pk=profile_id)2 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
finalize_profileapps/projects/profiles.py:504 for part in ProfilePart.objects.filter(profile=profile).defer("document").order_by("index", "id"):2 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
finalize_profileapps/projects/profiles.py:509 ProfilePart.objects.filter(profile=profile).exclude(pk__in=[part.pk for part in current]).delete()2 ms0.7%
QuerySet.deletedjango/db/models/query.py:12382 ms0.7%
Collector.deletedjango/db/models/deletion.py:4712 ms0.7%
QuerySet._raw_deletedjango/db/models/query.py:12602 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16342 ms0.7%
finalize_profileapps/projects/profiles.py:513 for duplicate in duplicates:2 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ValuesIterable.__iter__django/db/models/query.py:2222 ms0.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms0.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:932 ms0.7%
SQLCompiler.get_group_bydjango/db/models/sql/compiler.py:1762 ms0.7%
finalize_profileapps/projects/profiles.py:516 Environment.objects.select_for_update(no_key=True).filter(pk=profile.environment_id).first()2 ms0.7%
QuerySet.firstdjango/db/models/query.py:11452 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
finalize_profileapps/projects/profiles.py:5252 ms0.7%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)2 ms0.7%
Model.savedjango/db/models/base.py:8742 ms0.7%
Model.save_basedjango/db/models/base.py:9662 ms0.7%
Model._save_tabledjango/db/models/base.py:11102 ms0.7%
Model._do_updatedjango/db/models/base.py:12112 ms0.7%
QuerySet._updatedjango/db/models/query.py:13272 ms0.7%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms0.7%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(6 ms2.8%
Client.postdjango/test/client.py:11536 ms2.8%
RequestFactory.postdjango/test/client.py:4996 ms2.8%
RequestFactory.genericdjango/test/client.py:6716 ms2.8%
Client.requestdjango/test/client.py:10826 ms2.8%
ClientHandler.__call__django/test/client.py:1866 ms2.8%
BaseHandler.get_responsedjango/core/handlers/base.py:1416 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms2.8%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1306 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms2.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms2.8%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1236 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms2.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms2.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms2.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms2.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms2.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms2.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms2.8%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:346 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms2.8%
BaseHandler._get_responsedjango/core/handlers/base.py:1986 ms2.8%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:656 ms2.8%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:376 ms2.8%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:646 ms2.8%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:755 ms2.1%
profile_uploadapps/api/urls.py:1502 ms0.7%
get_or_create_numberedapps/projects/models.py:18 existing = model.objects.filter(project=project, **lookup).first()2 ms0.7%
QuerySet.firstdjango/db/models/query.py:11452 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
profile_uploadapps/api/urls.py:154 part = ProfilePart.objects.create(2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.createdjango/db/models/query.py:6692 ms0.7%
Model.savedjango/db/models/base.py:8742 ms0.7%
Model.save_basedjango/db/models/base.py:9662 ms0.7%
Model._save_tabledjango/db/models/base.py:11672 ms0.7%
Model._do_insertdjango/db/models/base.py:12182 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet._insertdjango/db/models/query.py:19182 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
profile_uploadapps/api/urls.py:1632 ms0.7%
Project.urlapps/projects/models.py:59 return reverse(name, args=[self.organization.slug, self.slug, *args])2 ms0.7%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2572 ms0.7%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2222 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:73 touch_token(request.headers.get("Authorization"))2 ms0.7%
Atomic.__exit__django/db/transaction.py:2472 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms0.7%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms0.7%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:75429 ms13.2%
ProfileUploadTest.uploadapps/api/tests.py:49521 ms9.8%
_SharedTaskProxy.__call__potatoq/app.py:76321 ms9.8%
Task.__call__potatoq/task.py:18921 ms9.8%
process_profileapps/api/tasks.py:25318 ms8.4%
_SharedTaskProxy.__call__potatoq/app.py:76318 ms8.4%
Task.__call__potatoq/task.py:18918 ms8.4%
finalize_profile_partsapps/api/tasks.py:25918 ms8.4%
finalize_profileapps/projects/profiles.py:500 profile = Profile.objects.select_for_update(no_key=True).get(pk=profile_id)17 ms7.7%
QuerySet.getdjango/db/models/query.py:63517 ms7.7%
QuerySet.__len__django/db/models/query.py:37217 ms7.7%
QuerySet._fetch_alldjango/db/models/query.py:200017 ms7.7%
ModelIterable.__iter__django/db/models/query.py:9517 ms7.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162415 ms7.0%
CursorWrapper.executedjango/db/backends/utils.py:7915 ms7.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9215 ms7.0%
CursorWrapper._executedjango/db/backends/utils.py:10515 ms7.0%
Cursor.executepsycopg/cursor.py:11315 ms7.0%
Connection.waitpsycopg/connection.py:49515 ms7.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:20615 ms7.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28615 ms7.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7815 ms7.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16222 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms0.7%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3202 ms0.7%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2982 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms0.7%
process_profileapps/api/tasks.py:2393 ms1.4%
process_profile_partapps/projects/profiles.py:363 profile = claim_part(part, document)3 ms1.4%
claim_partapps/projects/profiles.py:379 profile = Profile.objects.select_for_update(no_key=True).get(pk=part.profile_id)2 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms0.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms0.7%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms0.7%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms0.7%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms0.7%
Col.as_sqldjango/db/models/expressions.py:13252 ms0.7%
SQLCompiler.quote_name_unless_aliasdjango/db/backends/postgresql/compiler.py:342 ms0.7%
SQLCompiler.quote_name_unless_aliasdjango/db/models/sql/compiler.py:5692 ms0.7%
DatabaseOperations.quote_namedjango/db/backends/postgresql/operations.py:1902 ms0.7%
claim_partapps/projects/profiles.py:381 ProfilePart.objects.filter(profile=profile, index=part.index, id__lt=part.id).delete() # superseded uploads2 ms0.7%
QuerySet.deletedjango/db/models/query.py:12382 ms0.7%
Collector.deletedjango/db/models/deletion.py:4712 ms0.7%
QuerySet._raw_deletedjango/db/models/query.py:12602 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(8 ms3.5%
Client.postdjango/test/client.py:11538 ms3.5%
RequestFactory.postdjango/test/client.py:4998 ms3.5%
RequestFactory.genericdjango/test/client.py:6718 ms3.5%
Client.requestdjango/test/client.py:10828 ms3.5%
ClientHandler.__call__django/test/client.py:1868 ms3.5%
BaseHandler.get_responsedjango/core/handlers/base.py:1418 ms3.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms3.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1308 ms3.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms3.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms3.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms3.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1238 ms3.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms3.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms3.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms3.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms3.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms3.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms3.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms3.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms3.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms3.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms3.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms3.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms3.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms3.5%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:348 ms3.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms3.5%
BaseHandler._get_responsedjango/core/handlers/base.py:1988 ms3.5%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:658 ms3.5%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:378 ms3.5%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:648 ms3.5%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:755 ms2.1%
profile_uploadapps/api/urls.py:1502 ms0.7%
get_or_create_numberedapps/projects/models.py:18 existing = model.objects.filter(project=project, **lookup).first()2 ms0.7%
QuerySet.firstdjango/db/models/query.py:11452 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2052 ms0.7%
BaseCursor._convert_querypsycopg/_cursor_base.py:4652 ms0.7%
PostgresClientQuery.convertpsycopg/_queries.py:2892 ms0.7%
profile_uploadapps/api/urls.py:154 part = ProfilePart.objects.create(2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.createdjango/db/models/query.py:6692 ms0.7%
Model.savedjango/db/models/base.py:8742 ms0.7%
Model.save_basedjango/db/models/base.py:9662 ms0.7%
Model._save_tabledjango/db/models/base.py:11672 ms0.7%
Model._do_insertdjango/db/models/base.py:12182 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet._insertdjango/db/models/query.py:19182 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2052 ms0.7%
BaseCursor._convert_querypsycopg/_cursor_base.py:4652 ms0.7%
PostgresClientQuery.convertpsycopg/_queries.py:2892 ms0.7%
PostgresClientQuery.dumppsycopg/_queries.py:2992 ms0.7%
PostgresClientQuery.dump.<locals>.<genexpr>psycopg/_queries.py:3002 ms0.7%
profile_uploadapps/api/urls.py:1632 ms0.7%
Project.urlapps/projects/models.py:59 return reverse(name, args=[self.organization.slug, self.slug, *args])2 ms0.7%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2572 ms0.7%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2222 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:73 touch_token(request.headers.get("Authorization"))3 ms1.4%
Atomic.__enter__django/db/transaction.py:2112 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms0.7%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms0.7%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
touch_tokenapps/api/urls.py:59 SecretTokens.objects.filter(pk__in=list(stale)).update(date_last_used=now)2 ms0.7%
QuerySet.updatedjango/db/models/query.py:12982 ms0.7%
Query.clear_select_clausedjango/db/models/sql/query.py:22242 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:77312 ms5.6%
_SharedTaskProxy.__call__potatoq/app.py:76312 ms5.6%
Task.__call__potatoq/task.py:18912 ms5.6%
finalize_profile_partsapps/api/tasks.py:25911 ms4.9%
finalize_profileapps/projects/profiles.py:5175 ms2.1%
add_perfsapps/projects/rollups.py:30 for perf in perfs:2 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3182 ms0.7%
add_perfsapps/projects/rollups.py:64 for row in TestDailyStats.objects.filter(2 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms0.7%
add_perfsapps/projects/rollups.py:88 TestDailyStats.objects.bulk_create(2 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.bulk_createdjango/db/models/query.py:8162 ms0.7%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms0.7%
QuerySet._insertdjango/db/models/query.py:19182 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
finalize_profileapps/projects/profiles.py:500 profile = Profile.objects.select_for_update(no_key=True).get(pk=profile_id)2 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
finalize_profileapps/projects/profiles.py:504 for part in ProfilePart.objects.filter(profile=profile).defer("document").order_by("index", "id"):2 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
finalize_profileapps/projects/profiles.py:509 ProfilePart.objects.filter(profile=profile).exclude(pk__in=[part.pk for part in current]).delete()2 ms0.7%
QuerySet.deletedjango/db/models/query.py:12382 ms0.7%
Collector.deletedjango/db/models/deletion.py:4712 ms0.7%
QuerySet._raw_deletedjango/db/models/query.py:12602 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
finalize_profileapps/projects/profiles.py:5252 ms0.7%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)2 ms0.7%
Model.savedjango/db/models/base.py:8742 ms0.7%
Model.save_basedjango/db/models/base.py:9662 ms0.7%
Model._save_tabledjango/db/models/base.py:11102 ms0.7%
Model._do_updatedjango/db/models/base.py:12112 ms0.7%
QuerySet._updatedjango/db/models/query.py:13272 ms0.7%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms0.7%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
finalize_profile_partsapps/api/tasks.py:2602 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
FlatValuesListIterable.__iter__django/db/models/query.py:2772 ms0.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7645 ms2.1%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(5 ms2.1%
Client.postdjango/test/client.py:11535 ms2.1%
RequestFactory.postdjango/test/client.py:4995 ms2.1%
RequestFactory.genericdjango/test/client.py:6715 ms2.1%
Client.requestdjango/test/client.py:10825 ms2.1%
ClientHandler.__call__django/test/client.py:1865 ms2.1%
BaseHandler.get_responsedjango/core/handlers/base.py:1415 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.1%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1305 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.1%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1235 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.1%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:345 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms2.1%
BaseHandler._get_responsedjango/core/handlers/base.py:1985 ms2.1%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:655 ms2.1%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:375 ms2.1%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:645 ms2.1%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:755 ms2.1%
profile_uploadapps/api/urls.py:1502 ms0.7%
get_or_create_numberedapps/projects/models.py:18 existing = model.objects.filter(project=project, **lookup).first()2 ms0.7%
QuerySet.firstdjango/db/models/query.py:11452 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
profile_uploadapps/api/urls.py:152 part = ProfilePart.objects.filter(profile=profile, index=index).order_by("-id").first()2 ms0.7%
QuerySet.firstdjango/db/models/query.py:11452 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms0.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7952 ms0.7%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms0.7%
WhereNode.as_sqldjango/db/models/sql/where.py:1512 ms0.7%
profile_uploadapps/api/urls.py:1632 ms0.7%
Project.urlapps/projects/models.py:59 return reverse(name, args=[self.organization.slug, self.slug, *args])2 ms0.7%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2572 ms0.7%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2222 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7502 ms0.7%
SysMonitor.sysmon_py_startcoverage/sysmon.py:3942 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7572 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7592 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:1272 ms0.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15772 ms0.7%
SQLCompiler.get_convertersdjango/db/models/sql/compiler.py:15262 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7662 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.countdjango/db/models/query.py:6102 ms0.7%
Query.get_countdjango/db/models/sql/query.py:6512 ms0.7%
Query.get_aggregationdjango/db/models/sql/query.py:6332 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7712 ms0.7%
ProfileUploadTest.daily_runsapps/api/tests.py:7482 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.values_listdjango/db/models/query.py:14582 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7722 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.7%
QuerySet.countdjango/db/models/query.py:6102 ms0.7%
Query.get_countdjango/db/models/sql/query.py:6512 ms0.7%
Query.get_aggregationdjango/db/models/sql/query.py:6332 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7742 ms0.7%
Model.refresh_from_dbdjango/db/models/base.py:7582 ms0.7%
QuerySet.getdjango/db/models/query.py:6352 ms0.7%
QuerySet.__len__django/db/models/query.py:3722 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
ProfileUploadTest.test_daily_stats_count_a_profile_once_every_part_is_inapps/api/tests.py:7762 ms0.7%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms0.7%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms0.7%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
Estimated from 143 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
|
29 ms |
|
apps/api/urls.py:152
part = ProfilePart.objects.filter(profile=profile, index=index).order_by("-id").first()
profile_upload
· Database
|
21 ms |
|
apps/projects/profiles.py:500
profile = Profile.objects.select_for_update(no_key=True).get(pk=profile_id)
finalize_profile
· Database
|
21 ms |
|
apps/projects/profiles.py:111
return gzip.compress(data, compresslevel=6)
compress
· Libraries
|
18 ms |
|
apps/projects/models.py:18
existing = model.objects.filter(project=project, **lookup).first()
get_or_create_numbered
· Database
|
12 ms |
|
apps/projects/models.py:59
return reverse(name, args=[self.organization.slug, self.slug, *args])
Project.url
· Database
|
9 ms |
|
apps/projects/profiles.py:363
profile = claim_part(part, document)
process_profile_part
· Database
|
8 ms |
|
apps/api/urls.py:154
part = ProfilePart.objects.create(
profile_upload
· Database
|
6 ms |
|
apps/projects/profiles.py:379
profile = Profile.objects.select_for_update(no_key=True).get(pk=part.profile_id)
claim_part
· Database
|
6 ms |
|
apps/api/urls.py:73
touch_token(request.headers.get("Authorization"))
api_request.<locals>.decorator.<locals>.wrapped_view
· Database
|
6 ms |
Fixtures
Exact setup time| _django_db_marker function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_set_urlconf function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
224 queries · 75 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
|
214 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
2 ms |
Reliability
12 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 12 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 16 hours ago | CI github-actions:test | passed | 216 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 124 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 210 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 162 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 235 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 142 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 222 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 215 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 217 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 250 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 135 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 224 ms | Profile |