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

ProjectPagesTest::test_configure_page

First seen 3 weeks, 6 days ago in 78a4357
CI github-actions:test 15 runs
Average
328 ms
median 344 ms
max 536 ms
Phases
Setup 258 ms Call 69 ms Teardown 0.18 ms
Categories
Database 252 ms App code 11 ms Factories 1 ms Test code 0.09 ms Other (Libraries, Serialization, Templates, pytest, ...) 64 ms

323 database queries per run

Needs 335 KB of memory (max 1 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 11 hours ago · open run
Show pytest frames
setup246 ms73.1%
TestCase.setUpClassdjango/test/testcases.py:1439 cls.setUpTestData()235 ms69.9%
ProjectPagesTest.setUpTestDataapps/projects/tests.py:913127 ms37.6%
perf_scenarioapps/projects/tests.py:68388 ms26.3%
store_profileapps/projects/testing.py:37346 ms13.7%
process_profile_partapps/projects/profiles.py:381 profile = claim_part(part, document)22 ms6.5%
claim_partapps/projects/profiles.py:4854 ms1.2%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)4 ms1.2%
Model.savedjango/db/models/base.py:8744 ms1.2%
Model.save_basedjango/db/models/base.py:9664 ms1.2%
Model._save_tabledjango/db/models/base.py:11104 ms1.2%
Model._do_updatedjango/db/models/base.py:12114 ms1.2%
QuerySet._updatedjango/db/models/query.py:13274 ms1.2%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21404 ms1.2%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21114 ms1.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms0.8%
Cursor.executepsycopg/cursor.py:1133 ms0.8%
Connection.waitpsycopg/connection.py:4953 ms0.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms0.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms0.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms0.8%
1 smaller frames hidden
claim_partapps/projects/profiles.py:397 profile = Profile.objects.select_for_update(no_key=True).get(pk=part.profile_id)4 ms1.2%
QuerySet.getdjango/db/models/query.py:6353 ms0.8%
QuerySet.__len__django/db/models/query.py:3723 ms0.8%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms0.8%
ModelIterable.__iter__django/db/models/query.py:953 ms0.8%
1 smaller frames hidden
claim_partapps/projects/profiles.py:4174 ms1.2%
get_or_create_environmentapps/projects/environments.py:63 obj, created = Environment.objects.get_or_create(3 ms0.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms0.8%
1 smaller frames hidden
claim_partapps/projects/profiles.py:398 ProfilePart.objects.filter(pk=part.pk).update(status=ProfilePart.StatusTypes.PENDING)3 ms0.8%
claim_partapps/projects/profiles.py:415 project = profile.project3 ms0.8%
3 smaller frames hidden
process_profile_partapps/projects/profiles.py:3837 ms2.0%
upsert_testsapps/projects/profiles.py:4907 ms2.0%
TestManager.upsertapps/projects/models.py:2295 ms1.6%
TestManager.slugs_forapps/projects/models.py:240 existing = dict(self.filter(project_id=project_id, name__in=names).values_list("name", "slug"))5 ms1.6%
QuerySet.__iter__django/db/models/query.py:3904 ms1.2%
QuerySet._fetch_alldjango/db/models/query.py:20004 ms1.2%
ValuesListIterable.__iter__django/db/models/query.py:2384 ms1.2%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15734 ms1.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16244 ms1.2%
CursorWrapper.executedjango/db/backends/utils.py:794 ms1.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms1.2%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms1.2%
Cursor.executepsycopg/cursor.py:1134 ms1.2%
Connection.waitpsycopg/connection.py:4954 ms1.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2064 ms1.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms1.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms1.2%
1 smaller frames hidden
1 smaller frames hidden
process_profile_partapps/projects/profiles.py:3855 ms1.6%
write_snapshotsapps/projects/profiles.py:352 cursor.executemany(SNAPSHOT_UPSERT, batch)4 ms1.2%
CursorWrapper.executemanydjango/db/backends/utils.py:844 ms1.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms1.2%
CursorWrapper._executemanydjango/db/backends/utils.py:1144 ms1.2%
Cursor.executemanypsycopg/cursor.py:1384 ms1.2%
Connection.waitpsycopg/connection.py:4954 ms1.2%
BaseCursor._executemany_gen_pipelinepsycopg/_cursor_base.py:2394 ms1.2%
BasePipeline._communicate_genpsycopg/_pipeline_base.py:1124 ms1.2%
1 smaller frames hidden
process_profile_partapps/projects/profiles.py:384 write_perfs(profile, part, entries, tests)5 ms1.6%
write_perfsapps/projects/profiles.py:497 TestPerf.objects.bulk_create(3 ms0.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms0.8%
QuerySet.bulk_createdjango/db/models/query.py:8333 ms0.8%
QuerySet._batched_insertdjango/db/models/query.py:19563 ms0.8%
QuerySet._insertdjango/db/models/query.py:19183 ms0.8%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19253 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms0.8%
Cursor.executepsycopg/cursor.py:1133 ms0.8%
Connection.waitpsycopg/connection.py:4953 ms0.8%
2 smaller frames hidden
process_profile_partapps/projects/profiles.py:377 or ProfilePart.objects.filter(profile_id=part.profile_id, index=part.index, id__gt=part.id).exists()4 ms1.2%
QuerySet.existsdjango/db/models/query.py:13374 ms1.2%
Query.has_resultsdjango/db/models/sql/query.py:6814 ms1.2%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15924 ms1.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16244 ms1.2%
CursorWrapper.executedjango/db/backends/utils.py:794 ms1.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms1.2%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms1.2%
Cursor.executepsycopg/cursor.py:1134 ms1.2%
Connection.waitpsycopg/connection.py:4954 ms1.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2064 ms1.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms1.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms1.2%
process_profile_partapps/projects/profiles.py:374 part = ProfilePart.objects.filter(pk=part.pk).first()3 ms0.8%
QuerySet.firstdjango/db/models/query.py:11453 ms0.8%
QuerySet.__iter__django/db/models/query.py:3903 ms0.8%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms0.8%
ModelIterable.__iter__django/db/models/query.py:953 ms0.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms0.8%
Cursor.executepsycopg/cursor.py:1133 ms0.8%
Connection.waitpsycopg/connection.py:4953 ms0.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms0.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms0.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms0.8%
store_profileapps/projects/testing.py:374 finalize_profile(profile.id)33 ms9.7%
finalize_profileapps/projects/profiles.py:54315 ms4.4%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)15 ms4.4%
Model.savedjango/db/models/base.py:87415 ms4.4%
Model.save_basedjango/db/models/base.py:96615 ms4.4%
Model._save_tabledjango/db/models/base.py:111012 ms3.6%
Model._do_updatedjango/db/models/base.py:121111 ms3.2%
QuerySet._updatedjango/db/models/query.py:132711 ms3.2%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:214011 ms3.2%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:211111 ms3.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162410 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:7910 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9210 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:10510 ms2.8%
Cursor.executepsycopg/cursor.py:11310 ms2.8%
Connection.waitpsycopg/connection.py:49510 ms2.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2067 ms2.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2867 ms2.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:787 ms2.0%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
Model._save_tabledjango/db/models/base.py:10573 ms0.8%
finalize_profileapps/projects/profiles.py:5358 ms2.4%
add_perfsapps/projects/rollups.py:88 TestDailyStats.objects.bulk_create(5 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:875 ms1.6%
QuerySet.bulk_createdjango/db/models/query.py:8334 ms1.2%
QuerySet._batched_insertdjango/db/models/query.py:19564 ms1.2%
QuerySet._insertdjango/db/models/query.py:19184 ms1.2%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19254 ms1.2%
CursorWrapper.executedjango/db/backends/utils.py:794 ms1.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms1.2%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms1.2%
Cursor.executepsycopg/cursor.py:1134 ms1.2%
Connection.waitpsycopg/connection.py:4954 ms1.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2064 ms1.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms1.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms1.2%
1 smaller frames hidden
add_perfsapps/projects/rollups.py:64 for row in TestDailyStats.objects.filter(3 ms0.8%
QuerySet.__iter__django/db/models/query.py:3903 ms0.8%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms0.8%
ModelIterable.__iter__django/db/models/query.py:953 ms0.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms0.8%
Cursor.executepsycopg/cursor.py:1133 ms0.8%
Connection.waitpsycopg/connection.py:4953 ms0.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms0.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms0.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms0.8%
finalize_profileapps/projects/profiles.py:522 for part in ProfilePart.objects.filter(profile=profile).defer("document").order_by("index", "id"):3 ms0.8%
QuerySet.__iter__django/db/models/query.py:3903 ms0.8%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms0.8%
ModelIterable.__iter__django/db/models/query.py:953 ms0.8%
5 smaller frames hidden
store_profileapps/projects/testing.py:371 profile = Profile.objects.create(project=project, external_id=document["run"]["id"], ingest_id=ingest_id)5 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:875 ms1.6%
QuerySet.createdjango/db/models/query.py:6695 ms1.6%
Profile.saveapps/projects/models.py:465 self.number = next_number(type(self), self.project_id)3 ms0.8%
next_numberapps/projects/models.py:35 return (model.objects.filter(project_id=project_id).aggregate(last=models.Max("number"))["last"] or 0) + 13 ms0.8%
QuerySet.aggregatedjango/db/models/query.py:5943 ms0.8%
Query.get_aggregationdjango/db/models/sql/query.py:6333 ms0.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms0.8%
Cursor.executepsycopg/cursor.py:1133 ms0.8%
Connection.waitpsycopg/connection.py:4953 ms0.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms0.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms0.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms0.8%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)3 ms0.8%
Model.savedjango/db/models/base.py:8743 ms0.8%
Model.save_basedjango/db/models/base.py:9663 ms0.8%
Model._save_tabledjango/db/models/base.py:11673 ms0.8%
Model._do_insertdjango/db/models/base.py:12183 ms0.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms0.8%
QuerySet._insertdjango/db/models/query.py:19183 ms0.8%
store_profileapps/projects/testing.py:375 profile.refresh_from_db()3 ms0.8%
Model.refresh_from_dbdjango/db/models/base.py:7583 ms0.8%
QuerySet.getdjango/db/models/query.py:6353 ms0.8%
QuerySet.__len__django/db/models/query.py:3723 ms0.8%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms0.8%
1 smaller frames hidden
perf_scenarioapps/projects/tests.py:69837 ms10.9%
store_profileapps/projects/testing.py:37320 ms6.1%
process_profile_partapps/projects/profiles.py:381 profile = claim_part(part, document)8 ms2.4%
claim_partapps/projects/profiles.py:397 profile = Profile.objects.select_for_update(no_key=True).get(pk=part.profile_id)3 ms0.8%
QuerySet.getdjango/db/models/query.py:6353 ms0.8%
QuerySet.__len__django/db/models/query.py:3723 ms0.8%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms0.8%
ModelIterable.__iter__django/db/models/query.py:953 ms0.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms0.8%
Cursor.executepsycopg/cursor.py:1133 ms0.8%
Connection.waitpsycopg/connection.py:4953 ms0.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms0.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms0.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms0.8%
claim_partapps/projects/profiles.py:4173 ms0.8%
get_or_create_environmentapps/projects/environments.py:63 obj, created = Environment.objects.get_or_create(3 ms0.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms0.8%
2 smaller frames hidden
process_profile_partapps/projects/profiles.py:3834 ms1.2%
upsert_testsapps/projects/profiles.py:4904 ms1.2%
process_profile_partapps/projects/profiles.py:377 or ProfilePart.objects.filter(profile_id=part.profile_id, index=part.index, id__gt=part.id).exists()3 ms0.8%
QuerySet.existsdjango/db/models/query.py:13373 ms0.8%
Query.has_resultsdjango/db/models/sql/query.py:6813 ms0.8%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15923 ms0.8%
process_profile_partapps/projects/profiles.py:384 write_perfs(profile, part, entries, tests)3 ms0.8%
write_perfsapps/projects/profiles.py:497 TestPerf.objects.bulk_create(3 ms0.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms0.8%
QuerySet.bulk_createdjango/db/models/query.py:8333 ms0.8%
QuerySet._batched_insertdjango/db/models/query.py:19563 ms0.8%
QuerySet._insertdjango/db/models/query.py:19183 ms0.8%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19253 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms0.8%
Cursor.executepsycopg/cursor.py:1133 ms0.8%
Connection.waitpsycopg/connection.py:4953 ms0.8%
2 smaller frames hidden
store_profileapps/projects/testing.py:374 finalize_profile(profile.id)8 ms2.4%
finalize_profileapps/projects/profiles.py:531 for duplicate in duplicates:3 ms0.8%
QuerySet.__iter__django/db/models/query.py:3903 ms0.8%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms0.8%
ValuesIterable.__iter__django/db/models/query.py:2223 ms0.8%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15733 ms0.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms0.8%
finalize_profileapps/projects/profiles.py:5353 ms0.8%
2 smaller frames hidden
store_profileapps/projects/testing.py:371 profile = Profile.objects.create(project=project, external_id=document["run"]["id"], ingest_id=ingest_id)4 ms1.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:874 ms1.2%
QuerySet.createdjango/db/models/query.py:6694 ms1.2%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)3 ms0.8%
Model.savedjango/db/models/base.py:8743 ms0.8%
Model.save_basedjango/db/models/base.py:9663 ms0.8%
1 smaller frames hidden
store_profileapps/projects/testing.py:372 part = ProfilePart.objects.create(profile=profile, index=0, document=compress(data), document_size=len(data))3 ms0.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms0.8%
QuerySet.createdjango/db/models/query.py:6693 ms0.8%
Model.savedjango/db/models/base.py:8743 ms0.8%
Model.save_basedjango/db/models/base.py:9663 ms0.8%
Model._save_tabledjango/db/models/base.py:11673 ms0.8%
Model._do_insertdjango/db/models/base.py:12183 ms0.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms0.8%
QuerySet._insertdjango/db/models/query.py:19183 ms0.8%
1 smaller frames hidden
1 smaller frames hidden
ProjectPagesTest.setUpTestDataapps/projects/tests.py:91979 ms23.4%
store_profileapps/projects/testing.py:372 part = ProfilePart.objects.create(profile=profile, index=0, document=compress(data), document_size=len(data))37 ms10.9%
compressapps/projects/profiles.py:111 return gzip.compress(data, compresslevel=6)35 ms10.5%
compress<stdlib>/gzip.py:66835 ms10.5%
1 smaller frames hidden
store_profileapps/projects/testing.py:37330 ms8.9%
process_profile_partapps/projects/profiles.py:38510 ms2.8%
write_snapshotsapps/projects/profiles.py:35110 ms2.8%
write_snapshots.<locals>.<genexpr>apps/projects/profiles.py:34910 ms2.8%
write_snapshots.<locals>.rowapps/projects/profiles.py:345 compress(json.dumps(snapshot_document(document, entry), separators=(",", ":")).encode()),10 ms2.8%
compressapps/projects/profiles.py:111 return gzip.compress(data, compresslevel=6)3 ms0.8%
compress<stdlib>/gzip.py:6683 ms0.8%
dumps<stdlib>/json/__init__.py:2413 ms0.8%
JSONEncoder.encode<stdlib>/json/encoder.py:2023 ms0.8%
JSONEncoder.iterencode<stdlib>/json/encoder.py:2633 ms0.8%
2 smaller frames hidden
process_profile_partapps/projects/profiles.py:381 profile = claim_part(part, document)10 ms2.8%
claim_partapps/projects/profiles.py:4853 ms0.8%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)3 ms0.8%
Model.savedjango/db/models/base.py:8743 ms0.8%
Model.save_basedjango/db/models/base.py:9663 ms0.8%
5 smaller frames hidden
process_profile_partapps/projects/profiles.py:3834 ms1.2%
upsert_testsapps/projects/profiles.py:4904 ms1.2%
TestManager.upsertapps/projects/models.py:230 self.bulk_create( # sorted, so uploads sharing tests lock their rows in the same order3 ms0.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms0.8%
QuerySet.bulk_createdjango/db/models/query.py:8333 ms0.8%
QuerySet._batched_insertdjango/db/models/query.py:19563 ms0.8%
QuerySet._insertdjango/db/models/query.py:19183 ms0.8%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19253 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms0.8%
Cursor.executepsycopg/cursor.py:1133 ms0.8%
Connection.waitpsycopg/connection.py:4953 ms0.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms0.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms0.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms0.8%
1 smaller frames hidden
process_profile_partapps/projects/profiles.py:3803 ms0.8%
load_documentapps/projects/profiles.py:1333 ms0.8%
loadsapps/projects/profiles.py:118 document = json.loads(data)3 ms0.8%
loads<stdlib>/json/__init__.py:3713 ms0.8%
JSONDecoder.decode<stdlib>/json/decoder.py:3583 ms0.8%
JSONDecoder.raw_decode<stdlib>/json/decoder.py:3743 ms0.8%
process_profile_partapps/projects/profiles.py:384 write_perfs(profile, part, entries, tests)3 ms0.8%
1 smaller frames hidden
store_profileapps/projects/testing.py:374 finalize_profile(profile.id)11 ms3.2%
finalize_profileapps/projects/profiles.py:5355 ms1.6%
add_perfsapps/projects/rollups.py:64 for row in TestDailyStats.objects.filter(3 ms0.8%
QuerySet.__iter__django/db/models/query.py:3903 ms0.8%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms0.8%
ModelIterable.__iter__django/db/models/query.py:953 ms0.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms0.8%
Cursor.executepsycopg/cursor.py:1133 ms0.8%
Connection.waitpsycopg/connection.py:4953 ms0.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms0.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms0.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms0.8%
add_perfsapps/projects/rollups.py:88 TestDailyStats.objects.bulk_create(3 ms0.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms0.8%
QuerySet.bulk_createdjango/db/models/query.py:8333 ms0.8%
QuerySet._batched_insertdjango/db/models/query.py:19563 ms0.8%
QuerySet._insertdjango/db/models/query.py:19183 ms0.8%
4 smaller frames hidden
1 smaller frames hidden
ProjectPagesTest.setUpTestDataapps/projects/tests.py:92516 ms4.8%
store_profileapps/projects/testing.py:37311 ms3.2%
process_profile_partapps/projects/profiles.py:384 write_perfs(profile, part, entries, tests)10 ms2.8%
write_perfsapps/projects/profiles.py:499 TestPerf(8 ms2.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:877 ms2.0%
QuerySet.bulk_createdjango/db/models/query.py:8335 ms1.6%
QuerySet._batched_insertdjango/db/models/query.py:19565 ms1.6%
QuerySet._insertdjango/db/models/query.py:19185 ms1.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19244 ms1.2%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
store_profileapps/projects/testing.py:374 finalize_profile(profile.id)5 ms1.6%
ProjectPagesTest.setUpTestDataapps/projects/tests.py:9114 ms1.2%
add_memberapps/projects/testing.py:76 membership, _ = Membership.objects.get_or_create(4 ms1.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:874 ms1.2%
QuerySet.get_or_createdjango/db/models/query.py:9873 ms0.8%
QuerySet.getdjango/db/models/query.py:6353 ms0.8%
QuerySet.__len__django/db/models/query.py:3723 ms0.8%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms0.8%
ModelIterable.__iter__django/db/models/query.py:953 ms0.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms0.8%
Cursor.executepsycopg/cursor.py:1133 ms0.8%
Connection.waitpsycopg/connection.py:4953 ms0.8%
1 smaller frames hidden
ProjectPagesTest.setUpTestDataapps/projects/tests.py:9203 ms0.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms0.8%
QuerySet.getdjango/db/models/query.py:6353 ms0.8%
QuerySet.__len__django/db/models/query.py:3723 ms0.8%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms0.8%
5 smaller frames hidden
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()11 ms3.2%
TestCase._enter_atomicsdjango/test/testcases.py:139611 ms3.2%
Atomic.__enter__django/db/transaction.py:19811 ms3.2%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45411 ms3.2%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30311 ms3.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms3.2%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27911 ms3.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms3.2%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2568 ms2.4%
DatabaseWrapper.get_new_connectionft/db/postgresql/base.py:39 return super().get_new_connection(conn_params)8 ms2.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms2.4%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3338 ms2.4%
Connection.connectpsycopg/connection.py:1098 ms2.4%
wait_connpsycopg/waiting.py:1457 ms2.0%
BaseConnection._connect_genpsycopg/_connection_base.py:4397 ms2.0%
1 smaller frames hidden
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2583 ms0.8%
DatabaseWrapper.init_connection_statedjango/db/backends/postgresql/base.py:4023 ms0.8%
DatabaseWrapper._configure_connectiondjango/db/backends/postgresql/base.py:3743 ms0.8%
DatabaseWrapper._configure_timezonedjango/db/backends/postgresql/base.py:3573 ms0.8%
Cursor.executepsycopg/cursor.py:1133 ms0.8%
Connection.waitpsycopg/connection.py:4953 ms0.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms0.8%
call90 ms26.8%
ProjectPagesTest.test_configure_pageapps/projects/tests.py:1107 response = self.client.get(self.project.url("project_configure"))72 ms21.5%
Client.getdjango/test/client.py:112472 ms21.5%
RequestFactory.getdjango/test/client.py:47572 ms21.5%
RequestFactory.genericdjango/test/client.py:67172 ms21.5%
Client.requestdjango/test/client.py:108272 ms21.5%
ClientHandler.__call__django/test/client.py:18640 ms11.9%
BaseHandler.get_responsedjango/core/handlers/base.py:14140 ms11.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5540 ms11.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13040 ms11.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5540 ms11.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30940 ms11.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5540 ms11.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12340 ms11.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5540 ms11.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30937 ms11.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5537 ms11.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30937 ms11.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5537 ms11.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30937 ms11.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5537 ms11.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30937 ms11.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5537 ms11.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30937 ms11.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5537 ms11.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30937 ms11.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5537 ms11.1%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3437 ms11.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5537 ms11.1%
BaseHandler._get_responsedjango/core/handlers/base.py:19837 ms11.1%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:5932 ms9.6%
project_configureapps/projects/urls.py:53815 ms4.6%
shellapps/projects/urls.py:71 return org_shell(request, project.organization if project else None, section) | {12 ms3.4%
org_shellapps/orgs/views.py:33 organizations = [] if user.is_anonymous else list(Organization.objects.filter(membership__user=user))4 ms1.1%
QuerySet.__iter__django/db/models/query.py:3904 ms1.1%
QuerySet._fetch_alldjango/db/models/query.py:20004 ms1.1%
ModelIterable.__iter__django/db/models/query.py:954 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16244 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:794 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms1.1%
Cursor.executepsycopg/cursor.py:1134 ms1.1%
Connection.waitpsycopg/connection.py:4954 ms1.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2064 ms1.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms1.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms1.1%
org_shellapps/orgs/views.py:40 "org_projects": list(organization.project_set.order_by("name")) if member else [],4 ms1.1%
QuerySet.__iter__django/db/models/query.py:3904 ms1.1%
QuerySet._fetch_alldjango/db/models/query.py:20004 ms1.1%
ModelIterable.__iter__django/db/models/query.py:954 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16244 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:794 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms1.1%
Cursor.executepsycopg/cursor.py:1134 ms1.1%
Connection.waitpsycopg/connection.py:4954 ms1.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2064 ms1.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms1.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms1.1%
org_shellapps/orgs/views.py:424 ms1.1%
Organization.is_ownerapps/orgs/models.py:65 return user.is_authenticated and self.membership_set.filter(user=user, role=Membership.Role.OWNER).exists()4 ms1.1%
QuerySet.existsdjango/db/models/query.py:13374 ms1.1%
Query.has_resultsdjango/db/models/sql/query.py:6814 ms1.1%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15924 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16244 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:794 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms1.1%
Cursor.executepsycopg/cursor.py:1134 ms1.1%
Connection.waitpsycopg/connection.py:4954 ms1.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms0.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms0.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms0.8%
1 smaller frames hidden
shellapps/projects/urls.py:734 ms1.1%
can_manageapps/projects/urls.py:444 ms1.1%
can_manage_projectapps/projects/urls.py:40 return user.is_superuser or project.organization.membership_set.filter(user=user).exists()4 ms1.1%
QuerySet.existsdjango/db/models/query.py:13374 ms1.1%
Query.has_resultsdjango/db/models/sql/query.py:6814 ms1.1%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15924 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16244 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:794 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms1.1%
Cursor.executepsycopg/cursor.py:1134 ms1.1%
Connection.waitpsycopg/connection.py:4954 ms1.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2064 ms1.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms1.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms1.1%
project_configureapps/projects/urls.py:5288 ms2.3%
managed_projectapps/projects/urls.py:61 project = get_object_or_404(5 ms1.5%
get_object_or_404django/shortcuts.py:905 ms1.5%
QuerySet.getdjango/db/models/query.py:6354 ms1.1%
QuerySet.__len__django/db/models/query.py:3724 ms1.1%
QuerySet._fetch_alldjango/db/models/query.py:20004 ms1.1%
ModelIterable.__iter__django/db/models/query.py:954 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16244 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:794 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms1.1%
Cursor.executepsycopg/cursor.py:1134 ms1.1%
Connection.waitpsycopg/connection.py:4954 ms1.1%
1 smaller frames hidden
managed_projectapps/projects/urls.py:643 ms0.8%
can_manageapps/projects/urls.py:443 ms0.8%
can_manage_projectapps/projects/urls.py:40 return user.is_superuser or project.organization.membership_set.filter(user=user).exists()3 ms0.8%
QuerySet.existsdjango/db/models/query.py:13373 ms0.8%
Query.has_resultsdjango/db/models/sql/query.py:6813 ms0.8%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15923 ms0.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms0.8%
Cursor.executepsycopg/cursor.py:1133 ms0.8%
Connection.waitpsycopg/connection.py:4953 ms0.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms0.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms0.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms0.8%
project_configureapps/projects/urls.py:534 return render(8 ms2.3%
renderdjango/shortcuts.py:258 ms2.3%
render_to_stringdjango/template/loader.py:628 ms2.3%
Template.renderdjango/template/backends/django.py:1078 ms2.3%
Template.renderdjango/template/base.py:1748 ms2.3%
instrumented_test_renderdjango/test/utils.py:1148 ms2.3%
NodeList.renderdjango/template/base.py:10918 ms2.3%
Node.render_annotateddjango/template/base.py:10528 ms2.3%
ExtendsNode.renderdjango/template/loader_tags.py:1608 ms2.3%
instrumented_test_renderdjango/test/utils.py:1148 ms2.3%
NodeList.renderdjango/template/base.py:10918 ms2.3%
Node.render_annotateddjango/template/base.py:10528 ms2.3%
ExtendsNode.renderdjango/template/loader_tags.py:1608 ms2.3%
instrumented_test_renderdjango/test/utils.py:1148 ms2.3%
NodeList.renderdjango/template/base.py:10918 ms2.3%
Node.render_annotateddjango/template/base.py:10528 ms2.3%
BlockNode.renderdjango/template/loader_tags.py:668 ms2.3%
NodeList.renderdjango/template/base.py:10918 ms2.3%
Node.render_annotateddjango/template/base.py:10528 ms2.3%
BlockNode.renderdjango/template/loader_tags.py:668 ms2.3%
NodeList.renderdjango/template/base.py:10918 ms2.3%
Node.render_annotateddjango/template/base.py:10528 ms2.3%
SimpleNode.renderdjango/template/library.py:3254 ms1.1%
heroicon_miniheroicons/templatetags/heroicons.py:184 ms1.1%
_render_iconheroicons/templatetags/heroicons.py:394 ms1.1%
_render_iconheroicons/__init__.py:454 ms1.1%
deepcopy<stdlib>/copy.py:1374 ms1.1%
ForNode.renderdjango/template/defaulttags.py:2023 ms0.8%
QuerySet.__len__django/db/models/query.py:3723 ms0.8%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms0.8%
1 smaller frames hidden
1 smaller frames hidden
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:565 ms1.5%
login_required.<locals>.<lambda>django/contrib/auth/decorators.py:795 ms1.5%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2515 ms1.5%
SimpleLazyObject._setupdjango/utils/functional.py:4045 ms1.5%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:405 ms1.5%
get_userdjango/contrib/auth/middleware.py:205 ms1.5%
get_userdjango/contrib/auth/__init__.py:3184 ms1.1%
ModelBackend.get_userdjango/contrib/auth/backends.py:2324 ms1.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:874 ms1.1%
QuerySet.getdjango/db/models/query.py:6354 ms1.1%
QuerySet.__len__django/db/models/query.py:3724 ms1.1%
QuerySet._fetch_alldjango/db/models/query.py:20004 ms1.1%
ModelIterable.__iter__django/db/models/query.py:954 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16244 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:794 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms1.1%
Cursor.executepsycopg/cursor.py:1134 ms1.1%
Connection.waitpsycopg/connection.py:4954 ms1.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2064 ms1.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms1.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms1.1%
1 smaller frames hidden
MiddlewareMixin.__call__django/utils/deprecation.py:3113 ms0.8%
SessionMiddleware.process_responsedjango/contrib/sessions/middleware.py:593 ms0.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1273 ms0.8%
Model.savedjango/db/models/base.py:8743 ms0.8%
Model.save_basedjango/db/models/base.py:9663 ms0.8%
Model._save_tabledjango/db/models/base.py:11103 ms0.8%
Model._do_updatedjango/db/models/base.py:12113 ms0.8%
QuerySet._updatedjango/db/models/query.py:13273 ms0.8%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21403 ms0.8%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21113 ms0.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms0.8%
Cursor.executepsycopg/cursor.py:1133 ms0.8%
Connection.waitpsycopg/connection.py:4953 ms0.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms0.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms0.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms0.8%
ClientHandler.__call__django/test/client.py:17331 ms9.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6231 ms9.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:11121 ms6.1%
WhiteNoise.add_fileswhitenoise/base.py:10721 ms6.1%
isdir<frozen genericpath>:5221 ms6.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10410 ms3.1%
WhiteNoise.add_fileswhitenoise/base.py:10810 ms3.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1208 ms2.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1318 ms2.3%
WhiteNoise.get_static_filewhitenoise/base.py:2086 ms1.9%
StaticFile.__init__whitenoise/responders.py:774 ms1.1%
StaticFile.get_alternativeswhitenoise/responders.py:2004 ms1.1%
__init____init__:-14 ms1.1%
Headers.__init__<stdlib>/wsgiref/headers.py:364 ms1.1%
<GC>~4 ms1.1%
2 smaller frames hidden
1 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms0.8%
scantreewhitenoise/base.py:2623 ms0.8%
scantreewhitenoise/base.py:2623 ms0.8%
1 smaller frames hidden
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()10 ms3.1%
TestCase._fixture_teardowndjango/test/testcases.py:149510 ms3.1%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:48310 ms3.1%
CursorWrapper.executedjango/db/backends/utils.py:7910 ms3.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9210 ms3.1%
CursorWrapper._executedjango/db/backends/utils.py:10310 ms3.1%
Cursor.executepsycopg/cursor.py:11310 ms3.1%
Connection.waitpsycopg/connection.py:49510 ms3.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms0.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms0.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms0.8%
ProjectPagesTest.setUpapps/projects/tests.py:954 self.client.force_login(self.user)6 ms1.9%
ClientMixin.force_logindjango/test/client.py:8555 ms1.5%
ClientMixin._logindjango/test/client.py:8815 ms1.5%
logindjango/contrib/auth/__init__.py:1873 ms0.8%
2 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
Estimated from 251 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/tests.py:1107
response = self.client.get(self.project.url("project_configure"))
ProjectPagesTest.test_configure_page · Libraries
40 ms
apps/projects/profiles.py:111
return gzip.compress(data, compresslevel=6)
compress · Libraries
39 ms
apps/projects/models.py:466
super().save(*args, **kwargs)
Profile.save · Database
29 ms
apps/projects/rollups.py:88
TestDailyStats.objects.bulk_create(
add_perfs · Database
10 ms
apps/projects/profiles.py:499
TestPerf(
write_perfs · Database
10 ms
ft/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection · Database
8 ms
apps/projects/profiles.py:397
profile = Profile.objects.select_for_update(no_key=True).get(pk=part.profile_id)
claim_part · Database
8 ms
apps/projects/urls.py:534
return render(
project_configure · Templates
8 ms
apps/projects/profiles.py:377
or ProfilePart.objects.filter(profile_id=part.profile_id, index=part.index, id__gt=part.id).exists()
process_profile_part · Database
7 ms
apps/projects/models.py:240
existing = dict(self.filter(project_id=project_id, name__in=names).values_list("name", "slug"))
TestManager.slugs_for · Database
7 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_ProjectPagesTest class 245 ms
_django_setup_unittest class 0.21 ms
_dj_autoclear_mailbox function 0.06 ms
_django_db_marker function 0.04 ms
_template_string_if_invalid_marker function 0.04 ms
_live_server_helper function 0.03 ms
_django_set_urlconf function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

323 queries · 130 ms

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

21×
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…
15×
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…
14×
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"."…
8×
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…
7×
SELECT MAX("projects_profile"."number") AS "last" FROM "projects_profile" WHERE "projects_profile"."project_id" = %s

Biggest pieces of work

setup setUpClass
django/test/testcases.py:1439
246 ms
call test body
apps/projects/tests.py:1107
72 ms
call _post_teardown
django/test/testcases.py:1240
10 ms
call setUp
apps/projects/tests.py:954
6 ms
call _pre_setup
django/test/testcases.py:1164
1 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
11 hours ago CI github-actions:test passed 337 ms cb18ed3 main Profile
3 days, 21 hours ago CI github-actions:test passed 352 ms 9bd5864 main Profile
5 days, 21 hours ago CI github-actions:test passed 266 ms 19dac9b main Profile
6 days, 21 hours ago CI github-actions:test passed 329 ms e141198 main Profile
2 weeks, 4 days ago CI github-actions:test passed 200 ms 46ec2aa main Profile
3 weeks ago CI github-actions:test passed 352 ms afde85b main Profile
3 weeks ago CI github-actions:test passed 275 ms fe29f9d main Profile
3 weeks ago CI github-actions:test passed 399 ms 044719a main Profile
3 weeks, 1 day ago CI github-actions:test passed 228 ms b3fedae main Profile
3 weeks, 4 days ago CI github-actions:test passed 370 ms 43c4eda main Profile
3 weeks, 5 days ago CI github-actions:test passed 345 ms 9caa567 main Profile
3 weeks, 5 days ago CI github-actions:test passed 344 ms ec75501 main Profile
3 weeks, 6 days ago CI github-actions:test passed 536 ms d2c12e5 main Profile
3 weeks, 6 days ago CI github-actions:test passed 216 ms 0b902f6 main Profile
3 weeks, 6 days ago CI github-actions:test passed 367 ms 78a4357 main Profile