Tests / apps/projects/tests.py
AnalyticsTest::test_environment_rows
First seen 3 weeks ago in 78a4357
CI
github-actions:test
12 runs
Average
7 ms
median 7 ms
max 12 ms
max 12 ms
Phases
Setup 0.62 ms
Call 6 ms
Teardown 0.16 ms
Categories
Database 6 ms
App code 0.32 ms
Other (Unsampled, pytest) 1 ms
8 database queries per run
Needs 0 KB of memory (max 4 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 16 hours ago ·
open run
setup0.66 ms8.9%
call7 ms88.9%
AnalyticsTest.test_environment_rowsapps/projects/tests.py:807 rows = environment_rows(self.project)7 ms88.9%
environment_rowsapps/projects/analytics.py:221 for row in Profile.objects.filter(project=project, status=Profile.StatusTypes.PROCESSED, started_at__gte=since)7 ms88.9%
QuerySet.__iter__django/db/models/query.py:3907 ms88.9%
QuerySet._fetch_alldjango/db/models/query.py:20007 ms88.9%
ValuesIterable.__iter__django/db/models/query.py:2227 ms88.9%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15737 ms88.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16247 ms88.9%
CursorWrapper.executedjango/db/backends/utils.py:797 ms88.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:927 ms88.9%
CursorWrapper._executedjango/db/backends/utils.py:1057 ms88.9%
Cursor.executepsycopg/cursor.py:1137 ms88.9%
Connection.waitpsycopg/connection.py:4957 ms88.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2067 ms88.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2867 ms88.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:787 ms88.9%
Estimated from 2 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/projects/analytics.py:221
for row in Profile.objects.filter(project=project, status=Profile.StatusTypes.PROCESSED, started_at__gte=since)
environment_rows
· Database
|
7 ms |
Fixtures
Exact setup time| _django_db_marker function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _django_set_urlconf function | 0.04 ms |
| _live_server_helper function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
8 queries · 4 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/projects/tests.py:807
|
7 ms |
| setup pytest internals | 0.66 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 | 7 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 4 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 7 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 6 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 8 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 4 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 12 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 8 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 7 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 9 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 6 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 8 ms | Profile |