Skip to content
Prev Previous commit
Next Next commit
Highlight the project function calls in the profiling panel.
  • Loading branch information
tim-schilling committed Sep 13, 2022
commit 09c1cb57f1612dad09abc36786ece13648fe7af8
6 changes: 6 additions & 0 deletions debug_toolbar/static/debug_toolbar/css/toolbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,12 @@
#djDebug .djdt-highlighted {
background-color: lightgrey;
}
#djDebug tr.djdt-highlighted.djdt-profile-row {
background-color: #ffc;
}
#djDebug tr.djdt-highlighted.djdt-profile-row:nth-child(2n + 1) {
background-color: #dd9;
}
@keyframes djdt-flash-new {
from {
background-color: green;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</thead>
<tbody>
{% for call in func_list %}
<tr class="{% for parent_id in call.parent_ids %} djToggleDetails_{{ parent_id }}{% endfor %}" id="profilingMain_{{ call.id }}">
<tr class="djdt-profile-row {% if call.is_project_func %}djdt-highlighted {% endif %} {% for parent_id in call.parent_ids %} djToggleDetails_{{ parent_id }}{% endfor %}" id="profilingMain_{{ call.id }}">
<td>
<div data-djdt-styles="paddingLeft:{{ call.indent }}px">
{% if call.has_subfuncs %}
Expand Down
1 change: 1 addition & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Pending
will include more data, but increase render time.
* Update Profiling panel to include try to always include user code. This
code is more important to developers than dependency code.
* Highlight the project function calls in the profiling panel.


3.6.0 (2022-08-17)
Expand Down