stackprof
adventofcode
Our great sponsors
stackprof | adventofcode | |
---|---|---|
6 | 69 | |
2,043 | 14 | |
- | - | |
5.7 | 8.6 | |
2 months ago | 4 months ago | |
Ruby | Python | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
stackprof
-
A Trick For Reading Flamegraphs
stackprof can be used alone/by itself to generate flamegraphs for arbitrary Ruby code.
-
Why do my requests take so much time to complete when View and ActiveRecord are finishing fast?
Iβd use something like stackprof ( https://github.com/tmm1/stackprof ) to see where the time is going. If you already have suspicions you can use it to get information about a specific method / few lines of Ruby but thereβs also a rack middleware.
-
Ok yβall. How can we get this kind of real-time memory profiling in Ruby? Does it already exist? Is anyone working on this?
stackprof
-
Optimizing your tests in 5 steps
Other profilers, such as stackprof, trace everything thatβs happening by line. These types of profilers usually need some instrumentation to be configured, as shown below:
-
Is there a more efficient way to do these permutation calculations?
Either https://github.com/tmm1/stackprof for cpu or https://github.com/SamSaffron/memory_profiler for memory. In practice profiling and removing allocations also gives a large perf boost.
-
Automatically benchmark methods used within Rails
At first, I tried to benchmark the method using the benchmark library. (The profiler uses stackprof)
adventofcode
-
[2023 Day 04 (Part 2)][Python] Need help with recursion
I tried to model my code https://github.com/djotaku/adventofcode/blob/6c5d9c6e4f2dcbbbf7383b2923829c210faab028/2023/Day_04/Python/day_04.py (specifically lines 42-56) on my solution for Handy Haversacks in 2020 Day 7, but I'm ending up with an answer of 1 instead of 30. It seems like the problem is that my totals are not carrying up the stack, but I may have something else wrong.
- -π- 2022 Day 25 Solutions -π-
- -π- 2022 Day 20 Solutions -π-
- [2022 Day 18 (Part 1)][Python] What is wrong with my math?
- [2022 Day 15 (Part 1)] [Python] Need help with my algorithm
- -π- 2022 Day 14 Solutions -π-
-
-π- 2022 Day 13 Solutions -π-
My code is here https://github.com/djotaku/adventofcode/blob/66d74babd2ed37f56858096bc5598149448b6839/2022/Day_13/Python/solution.py
- [2016 Day 25 (Part 1)][Python] I keep getting 00000 or 111111
- -π- 2022 Day 12 Solutions -π-
- -π- 2022 Day 11 Solutions -π-
What are some alternatives?
rbtrace - like strace, but for ruby code
AdventOfCode2021 - Solutions to all 25 AoC 2021 problems in Rust :crab: Less than 100 lines per day and under 1 second total execution time! :christmas_tree:
memray - Memray is a memory profiler for Python
AdventOfCode - My Advent of Code solutions. I also upload videos of my solves: https://www.youtube.com/channel/UCuWLIm0l4sDpEe28t41WITA
MemoryProfiler - memory_profiler for ruby
advent-of-code-cpp - C++ solutions for the Advent of Code programming puzzles - http://adventofcode.com/
speedscope - π¬ A fast, interactive web-based viewer for performance profiles.
Advent-of-Code - My solutions or attempts at solutions to the Advent of Code event.
Rbenchmarker - Automatically log benchmarks for all methods
toit - Program your microcontrollers in a fast and robust high-level language.
rails_panel - Chrome extension for Rails development
adventofcode - :christmas_tree: Advent of Code (2015-2023) in C#