question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Suggestion: Unify `TimeRangeDecorator` and `time_range`

See original GitHub issue

Currently, there are these two handy functions for working with the profiler: 截圖 2021-09-20 16 20 48 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kmaehashicommented, Oct 11, 2021

Maybe move it to cupyx.profiler.profile as well?

1reaction
leofangcommented, Sep 21, 2021
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found