# Profiling Revised Base

**URL:** https://discourse.julialang.org/t/profiling-revised-base/76599
**Category:** Internals & Design
**Tags:** revise, profiling, base
**Created:** [February 17, 2022, 3:00am UTC](https://discourse.julialang.org/t/profiling-revised-base/76599 "2022-02-17T03:00:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Lilith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lilith/32/27492_2.png) [@Lilith](https://discourse.julialang.org/u/Lilith)
#### Post date: [February 17, 2022, 3:00am UTC](https://discourse.julialang.org/t/profiling-revised-base/76599/1 "2022-02-17T03:00:19Z")

</div>

After running `Revise.track(Base)` and editing files in Base, `@profile` & `Profile.print()` give wrong line numbers. Is there a way around this?

---

<div class="post-metadata">

### Author: ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)
#### Post date: [February 17, 2022, 3:07am UTC](https://discourse.julialang.org/t/profiling-revised-base/76599/2 "2022-02-17T03:07:24Z")

</div>

This is very weird. I use this workflow somewhat regularly, and it works for me.

---

<div class="post-metadata">

### Author: ![Lilith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lilith/32/27492_2.png) [@Lilith](https://discourse.julialang.org/u/Lilith)
#### Post date: [February 17, 2022, 3:14am UTC](https://discourse.julialang.org/t/profiling-revised-base/76599/3 "2022-02-17T03:14:49Z")

</div>

Strange. For example, I added a new function `radix_sort!` to sort.jl. Then I profiled some code that should not have run `radix_sort!`, and had one line of the profile output: ` ╎ ╎ ╎ ╎ ╎ 582 @Base/sort.jl:665; sort!`, which is strange because line 665 is a line in the `radix_sort!` function and the `radix_sort!` function does not call `sort!`

My eddited sort.jl is [sort.jl - Pastebin.com](https://pastebin.com/YpuZ0Y1J)  
I’m on julia version

```julia
Julia Version 1.8.0-DEV.1472
Commit 7ccc83ebaf (2022-02-09 01:36 UTC)

```

and I run

```julia
Revise.track(Base)
using Profile
@profile for _ in 1:10^7 sort!(rand(Char, 3)) end
Profile.clear()
@profile for _ in 1:10^7 sort!(rand(Char, 3)) end
Profile.print()

```

I can also reproduce on 1.7.2
