Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use class name for object that does not have qt name #6222

Merged
merged 1 commit into from Sep 16, 2023

Conversation

Czaki
Copy link
Collaborator

@Czaki Czaki commented Sep 12, 2023

Description

I have found that when the object does not have a set name, our performance tracing only provides the event name without information from which class it comes. So it. is hard to locate the real problem.

This PR add using a class name if the object does not have a name.

@Czaki Czaki marked this pull request as draft September 12, 2023 08:27
@github-actions github-actions bot added the qt Relates to qt label Sep 12, 2023
@Czaki
Copy link
Collaborator Author

Czaki commented Sep 12, 2023

cc: @brisvag @psobolewskiPhD

@codecov
Copy link

codecov bot commented Sep 12, 2023

Codecov Report

Merging #6222 (fa118e9) into main (52eb3b6) will decrease coverage by 0.01%.
The diff coverage is 60.00%.

@@            Coverage Diff             @@
##             main    #6222      +/-   ##
==========================================
- Coverage   91.67%   91.67%   -0.01%     
==========================================
  Files         583      583              
  Lines       51203    51208       +5     
==========================================
+ Hits        46942    46943       +1     
- Misses       4261     4265       +4     
Files Changed Coverage Δ
napari/utils/perf/_timers.py 84.12% <ø> (ø)
napari/_qt/perf/qt_event_tracing.py 86.11% <60.00%> (-7.44%) ⬇️

... and 3 files with indirect coverage changes

@Czaki
Copy link
Collaborator Author

Czaki commented Sep 13, 2023

cc: @melonora

@melonora
Copy link
Contributor

Works for me! Thanks this will make event tracing easier.

@melonora melonora added this to the 0.4.19 milestone Sep 15, 2023
@melonora melonora added the ready to merge Last chance for comments! Will be merged in ~24h label Sep 15, 2023
@Czaki Czaki marked this pull request as ready for review September 15, 2023 09:16
@melonora melonora added the maintenance PR with maintance changes, label Sep 16, 2023
@melonora melonora merged commit 493f055 into main Sep 16, 2023
39 checks passed
@Czaki Czaki deleted the maint/perf_improvements branch September 16, 2023 10:10
kne42 added a commit to kne42/napari that referenced this pull request Sep 19, 2023
* main: (26 commits)
  Fix some typing in napari.components (napari#6203)
  Use class name for object that does not have qt name (napari#6222)
  test: [Automatic] Constraints upgrades: `hypothesis`, `magicgui`, `psygnal`, `tensorstore`, `tifffile`, `tqdm`, `virtualenv` (napari#6143)
  Replace more np.all( ... = ...) with np.array_equal (napari#6213)
  remove np.all(... == ...) in test_surface.py (napari#6218)
  Ensure pandas Series is initialized with a list as data (napari#6226)
  Stop using temporary directory for store array for paint test (napari#6191)
  Bugfix: ensure thumbnail represents canvas when multiscale (napari#6200)
  cleanup np.all(... == ...) from test_points.py (napari#6217)
  [pre-commit.ci] pre-commit autoupdate (napari#6221)
  use app-model for file menu (napari#4865)
  Add tests to cover slicing behavior when changing layers and data (napari#4819)
  [pre-commit.ci] pre-commit autoupdate (napari#6128)
  Add test coverage for async slicing of labels (napari#5325)
  Add collision check when set colors for labels layer (napari#6193)
  Update "toggle ndview" text (napari#6192)
  Prevent layer controls buttons changing layout while taking screenshots with flash effect on (napari#6194)
  Fix typing in napari.utils.perf (napari#6132)
  Add GUI test coverage for changes to Labels.show_selected_label (napari#5372)
  Fix types in 'napari.utils.colormaps.categorical_colormap' (napari#6154)
  ...
@Czaki Czaki removed the ready to merge Last chance for comments! Will be merged in ~24h label Sep 23, 2023
Czaki added a commit that referenced this pull request Oct 17, 2023
# Description

I have found that when the object does not have a set name, our
performance tracing only provides the event name without information
from which class it comes. So it. is hard to locate the real problem.

This PR add using a class name if the object does not have a name.
@Czaki Czaki mentioned this pull request Oct 31, 2023
Carreau pushed a commit that referenced this pull request Nov 8, 2023
In #6222  performance monitor was inadvertently broken. This should fix it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance PR with maintance changes, qt Relates to qt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants