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.

Presets for ProfilerOptions/Profiler

See original GitHub issue

Is your feature request related to a problem? Please describe.

The Profiler can be slow with all options enabled. Most users won’t need all of the settings to be enabled. Changing the settings one by one takes quite a bit of time and you need to study the docs quite a bit.

Describe the outcome you’d like:

It would be nice if ProfilerOptions or the Profiler itself had the possibility of quickly adjusting multiple settings by setting a preset. The current default behavior could have the option "all" or "complete". It might look like this:

profiler = dp.Profiler(data, preset="complete")


opts = dp.ProfilerOptions(preset="complete")

Some other presets could be:

  • "standard" - where some niche features that are performance intensive are deactivated
  • "numeric_stats_disabled" - self explainatory
  • "data_types" - where only data types of columns are infered (this is actually what I want right now)

I’m sure you can think of others. The down side of this feature is that many presets would be opinionated.

The implementation would be straight forward and the source code e.g. would nicely list all the settings that are changed by the preset.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

lovleen3112commented, Sep 16, 2022

Working on this

JGSweetscommented, Sep 16, 2022

@lovleen3112 I think we can focus on the options preset: opts = dp.ProfilerOptions(preset="complete") as that could lead to easy add of an option preset during Profiling subsequently

Read more comments on GitHub >

github_iconTop Results From Across the Web

carbon/ at master · graphite-project/carbon - GitHub
Carbon is one of the components of Graphite, and is responsible for receiving metrics over the network and writing them down to disk...
Read more >
os.environ.setdefault Example - Program Talk
Here are the examples of the python api os.environ.setdefault taken from open source projects. By voting up you can indicate which examples are...
Read more >
Settings has lock_keys, lock_values +- jquery 1.3.1 +- PEP8 compliance +- new ... .ip,options.port,logging=options.logging,profiler=options.profiler) + +if ...
Read more >
OTO-KUR (Dosyaları ile) - Sayfa 2 - IRCForumları - IRC ve ...
Config -nointro -quick rm -rf config.settings cat > config.settings ... if options.profiler: args1+=["--profiler", options.profiler] if ...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found