Suggestion: Unify `TimeRangeDecorator` and `time_range`
See original GitHub issueCurrently, there are these two handy functions for working with the profiler: One is to use as a function decorator, and the other is as a context manager. But I think there’re multiple ways to achieve the two needs in one single implementation. I am always confused and have to look up the two choices when needed…
Suggestion: Deprecate TimeRangeDecorator
in favor of time_range
. This should have minimal user impact as production code would likely have them removed, but we should investigate/solicit feedbacks.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Primer on Python Decorators
In this introductory tutorial, we'll look at what Python decorators are and how ... Timing Functions; Debugging Code; Slowing Down Code; Registering Plugins ......
Read more >timeit versus timing decorator - python
Show activity on this post. I'm trying to time some code. First I used a timing decorator: #!/usr/bin/env python import time from itertools...
Read more >Untitled
Fujifilm s9600 manual, Merge excel columns into 1. Fsgenesis freeware, Powerbuilder menu, ... Radio times magazine sherlock, Calle llull 297 barcelona!
Read more >Untitled
Taxi booking system open source, Tudors tv series watch online free, Concussive blast ... The collection movie times, Cold ones vampires history in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Maybe move it to
cupyx.profiler.profile
as well?Oh, there’s also another
profile()
that we need to consider… https://github.com/cupy/cupy/blob/4469fae998df33c72ff40ef954cb08b8f0004b18/cupy/cuda/__init__.py#L153-L155