Tests / apps/projects/tests.py
MemoryTest::test_memory_tab
First seen 1 month, 1 week ago in 78a4357
CI
github-actions:test
15 runs
Average
72 ms
median 80 ms
max 102 ms
max 102 ms
Phases
Setup 0.75 ms
Call 72 ms
Teardown 0.18 ms
Categories
Database 43 ms
App code 0.88 ms
Other (Libraries, Templates, Unsampled, pytest, ...) 28 ms
50 database queries per run
Needs 2 KB of memory (max 32 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup0.58 ms1.0%
call56 ms98.7%
MemoryTest.test_memory_tabapps/projects/tests.py:1462 response = self.client.get(self.project.url("project_tests"), {"tab": "memory"})26 ms45.5%
Client.getdjango/test/client.py:112426 ms45.5%
RequestFactory.getdjango/test/client.py:47526 ms45.5%
RequestFactory.genericdjango/test/client.py:67126 ms45.5%
Client.requestdjango/test/client.py:108226 ms45.5%
ClientHandler.__call__django/test/client.py:17313 ms22.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6213 ms22.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10413 ms22.8%
WhiteNoise.add_fileswhitenoise/base.py:10813 ms22.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1209 ms15.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1319 ms15.2%
WhiteNoise.get_static_filewhitenoise/base.py:2089 ms15.2%
StaticFile.__init__whitenoise/responders.py:762 ms3.8%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms3.8%
StaticFile.__init__whitenoise/responders.py:742 ms3.8%
parsedate<stdlib>/email/_parseaddr.py:1852 ms3.8%
StaticFile.__init__whitenoise/responders.py:722 ms3.8%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms3.8%
StaticFile.__init__whitenoise/responders.py:732 ms3.8%
StaticFile.get_headerswhitenoise/responders.py:1762 ms3.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms7.6%
scantreewhitenoise/base.py:2622 ms3.8%
scantreewhitenoise/base.py:2622 ms3.8%
scantreewhitenoise/base.py:2622 ms3.8%
scantreewhitenoise/base.py:2622 ms3.8%
scantreewhitenoise/base.py:2622 ms3.8%
scantreewhitenoise/base.py:2642 ms3.8%
<GC>~2 ms3.8%
ClientHandler.__call__django/test/client.py:18613 ms22.8%
BaseHandler.get_responsedjango/core/handlers/base.py:14113 ms22.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms22.8%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13013 ms22.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms22.8%
MiddlewareMixin.__call__django/utils/deprecation.py:30913 ms22.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms22.8%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12313 ms22.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms22.8%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms19.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms19.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms19.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms19.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms19.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms19.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms19.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms19.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms19.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms19.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms19.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms19.0%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3411 ms19.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms19.0%
BaseHandler._get_responsedjango/core/handlers/base.py:19811 ms19.0%
project_testsapps/projects/urls.py:1804 ms7.6%
shellapps/projects/urls.py:71 return org_shell(request, project.organization if project else None, section) | {4 ms7.6%
org_shellapps/orgs/views.py:33 organizations = [] if user.is_anonymous else list(Organization.objects.filter(membership__user=user))2 ms3.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.8%
QuerySet.filterdjango/db/models/query.py:15422 ms3.8%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms3.8%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms3.8%
Query.add_qdjango/db/models/sql/query.py:16712 ms3.8%
Query._add_qdjango/db/models/sql/query.py:17032 ms3.8%
Query.build_filterdjango/db/models/sql/query.py:15662 ms3.8%
Query.check_filterabledjango/db/models/sql/query.py:14042 ms3.8%
org_shellapps/orgs/views.py:422 ms3.8%
Organization.is_ownerapps/orgs/models.py:65 return user.is_authenticated and self.membership_set.filter(user=user, role=Membership.Role.OWNER).exists()2 ms3.8%
QuerySet.existsdjango/db/models/query.py:13372 ms3.8%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms3.8%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms3.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.8%
Cursor.executepsycopg/cursor.py:1132 ms3.8%
Connection.waitpsycopg/connection.py:4952 ms3.8%
project_testsapps/projects/urls.py:2014 ms7.6%
memory_testsapps/projects/analytics.py:506 .annotate(2 ms3.8%
memory_testsapps/projects/analytics.py:504 rows = list(2 ms3.8%
QuerySet.__iter__django/db/models/query.py:3902 ms3.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.8%
ValuesIterable.__iter__django/db/models/query.py:2222 ms3.8%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms3.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.8%
Cursor.executepsycopg/cursor.py:1132 ms3.8%
Connection.waitpsycopg/connection.py:4952 ms3.8%
project_testsapps/projects/urls.py:1772 ms3.8%
find_projectapps/projects/urls.py:522 ms3.8%
can_viewapps/projects/urls.py:332 ms3.8%
can_manage_projectapps/projects/urls.py:38 if not user.is_authenticated:2 ms3.8%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2512 ms3.8%
SimpleLazyObject._setupdjango/utils/functional.py:4042 ms3.8%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:402 ms3.8%
get_userdjango/contrib/auth/middleware.py:202 ms3.8%
get_userdjango/contrib/auth/__init__.py:3182 ms3.8%
ModelBackend.get_userdjango/contrib/auth/backends.py:2322 ms3.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.8%
QuerySet.getdjango/db/models/query.py:6352 ms3.8%
QuerySet.__len__django/db/models/query.py:3722 ms3.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.8%
ModelIterable.__iter__django/db/models/query.py:952 ms3.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.8%
Cursor.executepsycopg/cursor.py:1132 ms3.8%
Connection.waitpsycopg/connection.py:4952 ms3.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3112 ms3.8%
SessionMiddleware.process_responsedjango/contrib/sessions/middleware.py:592 ms3.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms3.8%
Atomic.__enter__django/db/transaction.py:2112 ms3.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.8%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms3.8%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms3.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms3.8%
Cursor.executepsycopg/cursor.py:1132 ms3.8%
Connection.waitpsycopg/connection.py:4952 ms3.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.8%
MemoryTest.test_memory_tabapps/projects/tests.py:146622 ms38.0%
Client.getdjango/test/client.py:112420 ms34.2%
RequestFactory.getdjango/test/client.py:47520 ms34.2%
RequestFactory.genericdjango/test/client.py:67120 ms34.2%
Client.requestdjango/test/client.py:108220 ms34.2%
ClientHandler.__call__django/test/client.py:18620 ms34.2%
BaseHandler.get_responsedjango/core/handlers/base.py:14120 ms34.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms34.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13020 ms34.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms34.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30920 ms34.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms34.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12320 ms34.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms34.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms30.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms30.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms30.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms30.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms30.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms30.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms30.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms30.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms30.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms30.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms30.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms30.4%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3417 ms30.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms30.4%
BaseHandler._get_responsedjango/core/handlers/base.py:19817 ms30.4%
project_testsapps/projects/urls.py:1774 ms7.6%
find_projectapps/projects/urls.py:49 project = get_object_or_404(2 ms3.8%
get_object_or_404django/shortcuts.py:902 ms3.8%
QuerySet.getdjango/db/models/query.py:6352 ms3.8%
QuerySet.__len__django/db/models/query.py:3722 ms3.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.8%
ModelIterable.__iter__django/db/models/query.py:952 ms3.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.8%
Cursor.executepsycopg/cursor.py:1132 ms3.8%
Connection.waitpsycopg/connection.py:4952 ms3.8%
find_projectapps/projects/urls.py:522 ms3.8%
can_viewapps/projects/urls.py:332 ms3.8%
can_manage_projectapps/projects/urls.py:40 return user.is_superuser or project.organization.membership_set.filter(user=user).exists()2 ms3.8%
QuerySet.existsdjango/db/models/query.py:13372 ms3.8%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms3.8%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms3.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.8%
Cursor.executepsycopg/cursor.py:1132 ms3.8%
Connection.waitpsycopg/connection.py:4952 ms3.8%
project_testsapps/projects/urls.py:1804 ms7.6%
shellapps/projects/urls.py:71 return org_shell(request, project.organization if project else None, section) | {4 ms7.6%
org_shellapps/orgs/views.py:40 "org_projects": list(organization.project_set.order_by("name")) if member else [],2 ms3.8%
QuerySet.__iter__django/db/models/query.py:3902 ms3.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.8%
ModelIterable.__iter__django/db/models/query.py:952 ms3.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16222 ms3.8%
org_shellapps/orgs/views.py:422 ms3.8%
Organization.is_ownerapps/orgs/models.py:65 return user.is_authenticated and self.membership_set.filter(user=user, role=Membership.Role.OWNER).exists()2 ms3.8%
QuerySet.existsdjango/db/models/query.py:13372 ms3.8%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms3.8%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms3.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms3.8%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7922 ms3.8%
SQLCompiler.get_from_clausedjango/db/models/sql/compiler.py:11592 ms3.8%
project_testsapps/projects/urls.py:2014 ms7.6%
memory_testsapps/projects/analytics.py:519 .filter(test_id__in=[row["test_id"] for row in rows], memory_peak__isnull=False)2 ms3.8%
QuerySet.filterdjango/db/models/query.py:15422 ms3.8%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms3.8%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms3.8%
Query.add_qdjango/db/models/sql/query.py:16712 ms3.8%
memory_testsapps/projects/analytics.py:518 scope.perf()2 ms3.8%
QuerySet.__iter__django/db/models/query.py:3902 ms3.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.8%
ModelIterable.__iter__django/db/models/query.py:1282 ms3.8%
Model.from_dbdjango/db/models/base.py:6022 ms3.8%
project_testsapps/projects/urls.py:197 daily = daily.filter(test__name__icontains=search)2 ms3.8%
QuerySet.filterdjango/db/models/query.py:15422 ms3.8%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms3.8%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms3.8%
Query.add_qdjango/db/models/sql/query.py:16712 ms3.8%
Query._add_qdjango/db/models/sql/query.py:17032 ms3.8%
Query.build_filterdjango/db/models/sql/query.py:15512 ms3.8%
project_testsapps/projects/urls.py:198 total = daily.values("test_id").distinct().count()2 ms3.8%
QuerySet.countdjango/db/models/query.py:6102 ms3.8%
Query.get_countdjango/db/models/sql/query.py:6512 ms3.8%
Query.get_aggregationdjango/db/models/sql/query.py:6332 ms3.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.8%
Cursor.executepsycopg/cursor.py:1132 ms3.8%
Connection.waitpsycopg/connection.py:4952 ms3.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3112 ms3.8%
SessionMiddleware.process_responsedjango/contrib/sessions/middleware.py:592 ms3.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms3.8%
Atomic.__exit__django/db/transaction.py:2472 ms3.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.8%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms3.8%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms3.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms3.8%
Cursor.executepsycopg/cursor.py:1132 ms3.8%
Connection.waitpsycopg/connection.py:4952 ms3.8%
Project.urlapps/projects/models.py:59 return reverse(name, args=[self.organization.slug, self.slug, *args])2 ms3.8%
URLResolver._reverse_with_prefixdjango/urls/resolvers.py:8032 ms3.8%
search<stdlib>/re/__init__.py:1792 ms3.8%
MemoryTest.setUpapps/projects/tests.py:1429 self.client.force_login(self.user)7 ms11.4%
ClientMixin.force_logindjango/test/client.py:8557 ms11.4%
ClientMixin._logindjango/test/client.py:8762 ms3.8%
ClientMixin.sessiondjango/test/client.py:8122 ms3.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1212 ms3.8%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms3.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms3.8%
Model.savedjango/db/models/base.py:8742 ms3.8%
Model.save_basedjango/db/models/base.py:9662 ms3.8%
Model._save_tabledjango/db/models/base.py:11672 ms3.8%
Model._do_insertdjango/db/models/base.py:12182 ms3.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.8%
QuerySet._insertdjango/db/models/query.py:19182 ms3.8%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms3.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.8%
Cursor.executepsycopg/cursor.py:1132 ms3.8%
Connection.waitpsycopg/connection.py:4952 ms3.8%
ClientMixin._logindjango/test/client.py:8812 ms3.8%
logindjango/contrib/auth/__init__.py:1972 ms3.8%
Signal.senddjango/dispatch/dispatcher.py:2092 ms3.8%
update_last_logindjango/contrib/auth/models.py:242 ms3.8%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:622 ms3.8%
Model.savedjango/db/models/base.py:8742 ms3.8%
Model.save_basedjango/db/models/base.py:9662 ms3.8%
Model._save_tabledjango/db/models/base.py:10642 ms3.8%
ClientMixin._logindjango/test/client.py:8832 ms3.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms3.8%
Model.savedjango/db/models/base.py:8742 ms3.8%
Model.save_basedjango/db/models/base.py:9662 ms3.8%
Model._save_tabledjango/db/models/base.py:11102 ms3.8%
Model._do_updatedjango/db/models/base.py:12112 ms3.8%
QuerySet._updatedjango/db/models/query.py:13272 ms3.8%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms3.8%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms3.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.8%
Cursor.executepsycopg/cursor.py:1132 ms3.8%
Connection.waitpsycopg/connection.py:4952 ms3.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms3.8%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms3.8%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms3.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms3.8%
Cursor.executepsycopg/cursor.py:1132 ms3.8%
Connection.waitpsycopg/connection.py:4952 ms3.8%
Estimated from 27 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/projects/tests.py:1462
response = self.client.get(self.project.url("project_tests"), {"tab": "memory"})
MemoryTest.test_memory_tab
· Libraries
|
15 ms |
|
apps/projects/tests.py:1429
self.client.force_login(self.user)
MemoryTest.setUp
· Database
|
7 ms |
|
apps/orgs/models.py:65
return user.is_authenticated and self.membership_set.filter(user=user, role=Membership.Role.OWNER).exists()
Organization.is_owner
· Database
|
4 ms |
|
apps/projects/urls.py:38
if not user.is_authenticated:
can_manage_project
· Database
|
2 ms |
|
apps/orgs/views.py:33
organizations = [] if user.is_anonymous else list(Organization.objects.filter(membership__user=user))
org_shell
· Database
|
2 ms |
|
apps/projects/analytics.py:506
.annotate(
memory_tests
· App code
|
2 ms |
|
apps/projects/analytics.py:504
rows = list(
memory_tests
· Database
|
2 ms |
|
apps/projects/models.py:59
return reverse(name, args=[self.organization.slug, self.slug, *args])
Project.url
· Libraries
|
2 ms |
|
apps/projects/urls.py:49
project = get_object_or_404(
find_project
· Database
|
2 ms |
|
apps/projects/urls.py:40
return user.is_superuser or project.organization.membership_set.filter(user=user).exists()
can_manage_project
· Database
|
2 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.07 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _django_db_marker function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
| _django_set_urlconf function | 0.02 ms |
| _live_server_helper function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Database
50 queries · 13 ms
Repeated queries are usually N+1 lookups: fetch them once with select_related / prefetch_related (or selectinload).
4×
SELECT %s AS "a" FROM "orgs_membership" WHERE ("orgs_membership"."organization_id" = %s AND "orgs_membership"."user_id" = %s) LIMIT ?
3×
SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."expire_date" > %s AND "django_session"."session_key" = %s) LIMIT ?
3×
UPDATE "django_session" SET "session_data" = %s, "expire_date" = %s WHERE "django_session"."session_key" = %s
Biggest pieces of work
|
call test body
apps/projects/tests.py:1462
|
48 ms |
|
call setUp
apps/projects/tests.py:1429
|
7 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
2 ms |
| setup pytest internals | 0.58 ms |
Reliability
15 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 15 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 57 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 80 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 44 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 75 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 42 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 85 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 72 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 97 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 52 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 86 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 84 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 82 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 102 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 45 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 83 ms | Profile |