Skip to content

Commit 87ecf8f

Browse files
authored
remove spurious parens in profiler docs (#56357)
1 parent fcf7ec0 commit 87ecf8f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/src/manual/profile.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ Our goal is to detect whether there is contention on the `ch` channel—i.e., wh
349349

350350
If we run this, we obtain the following [PProf](https://github.com/JuliaPerf/PProf.jl) flame graph:
351351

352-
![CPU Profile](./img/cpu-profile.png)()
352+
![CPU Profile](./img/cpu-profile.png)
353353

354354
This profile provides no information to help determine where contention occurs in the system’s synchronization primitives. Waiters on a channel will be blocked and descheduled, meaning no system thread will be running the tasks assigned to those waiters, and as a result, they won't be sampled by the profiler.
355355

@@ -402,7 +402,7 @@ Profile.@profile_walltime main()
402402

403403
We obtain the following flame graph:
404404

405-
![Wall-time Profile Channel](./img/wall-time-profiler-channel-example.png)()
405+
![Wall-time Profile Channel](./img/wall-time-profiler-channel-example.png)
406406

407407
We see that a large number of samples come from channel-related `take!` functions, which allows us to determine that there is indeed an excessive number of waiters in `ch`.
408408

@@ -454,7 +454,7 @@ Profile.@profile_walltime main()
454454

455455
After collecting a wall-time profile, we get the following flame graph:
456456

457-
![Wall-time Profile Compute-Bound](./img/wall-time-profiler-compute-bound-example.png)()
457+
![Wall-time Profile Compute-Bound](./img/wall-time-profiler-compute-bound-example.png)
458458

459459
Notice how many of the samples contain `sum_of_sqrt`, which is the expensive compute function in our example.
460460

@@ -507,7 +507,7 @@ Notice that the tasks spawned in `spawn_a_bunch_of_short_lived_tasks` are extrem
507507

508508
After collecting a wall-time profile, we obtain the following flame graph:
509509

510-
![Task Sampling Failure](./img/task-sampling-failure.png)()
510+
![Task Sampling Failure](./img/task-sampling-failure.png)
511511

512512
The large number of samples from `failed_to_stop_thread_fun` confirms that we have a significant number of short-lived tasks in the system.
513513

0 commit comments

Comments
 (0)