Skip to content

Commit 78b2294

Browse files
committed
-
1 parent a753a1b commit 78b2294

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/topics/cute-profile.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,11 @@ This table shows how long each function took. If you want to understand
101101
The ``tottime`` column says how much time was spent inside this function,
102102
across all calls, and without counting the time that was spent in
103103
sub-functions. See how the ``get_divisors`` function in our example has a very
104-
high ``tottime`` of 7.997. This means that ``get_divisors`` is what's causing
105-
our program to run slow, and if we'll want to optimize the program, we should
106-
try to come up with a smarter way of finding all of a number's divisors than
107-
going one-by-one over all numbers.
104+
high ``tottime`` of 7.997 seconds, which is about 100% of the entire run time.
105+
This means that ``get_divisors`` is what's causing our program to run slow, and
106+
if we'll want to optimize the program, we should try to come up with a smarter
107+
way of finding all of a number's divisors than going one-by-one over all
108+
numbers.
108109

109110
:func:`profile_ready <cute_profile.profile_ready>` has a bunch of other options that I won't explore there. In brief:
110111

0 commit comments

Comments
 (0)