Add profiling information for moving rows
This commit is contained in:
parent
93839c69e2
commit
58e244af21
@ -57,6 +57,7 @@ from PyQt6.QtWidgets import (
|
||||
)
|
||||
|
||||
# Third party imports
|
||||
import line_profiler
|
||||
from pygame import mixer
|
||||
from sqlalchemy.orm.session import Session
|
||||
import stackprinter # type: ignore
|
||||
@ -2113,7 +2114,8 @@ class Window(QMainWindow):
|
||||
|
||||
webbrowser.get("browser").open_new_tab(url)
|
||||
|
||||
def paste_rows(self) -> None:
|
||||
@line_profiler.profile
|
||||
def paste_rows(self, dummy_for_profiling: int | None = None) -> None:
|
||||
"""
|
||||
Paste earlier cut rows.
|
||||
"""
|
||||
|
||||
@ -31,6 +31,7 @@ from PyQt6.QtWidgets import (
|
||||
)
|
||||
|
||||
# Third party imports
|
||||
import line_profiler
|
||||
|
||||
# App imports
|
||||
from audacity_controller import AudacityController
|
||||
@ -357,7 +358,8 @@ class PlaylistTab(QTableView):
|
||||
# Deselect edited line
|
||||
self.clear_selection()
|
||||
|
||||
def dropEvent(self, event: Optional[QDropEvent]) -> None:
|
||||
@line_profiler.profile
|
||||
def dropEvent(self, event: Optional[QDropEvent], dummy: int | None = None) -> None:
|
||||
"""
|
||||
Move dropped rows
|
||||
"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user