# \`@profview\` blank in VSCode when profiling Flux

**URL:** <https://discourse.julialang.org/t/profview-blank-in-vscode-when-profiling-flux/119602>\
**Category:** VS Code\
**Created:** [September 19, 2024, 1:26pm UTC](https://discourse.julialang.org/t/profview-blank-in-vscode-when-profiling-flux/119602 "2024-09-19T13:26:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BioTurboNick](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bioturbonick/32/6380_2.png) [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Post date:** [September 19, 2024, 1:26pm UTC](https://discourse.julialang.org/t/profview-blank-in-vscode-when-profiling-flux/119602/1 "2024-09-19T13:26:48Z")

</div>

I’ve been experiencing a blank window when using `@profview` while profiling a Flux model.

The editor shows the blue/red bars for time spent in each line properly. But I can’t even save the profile to HTML - I select a save location and click OK, but no file is created and no error is surfaced.

Has anyone encountered this, or know how I can collect more details to file an issue?

Unlike previous mentions of the issue here, it doesn’t show up on second run. And if I do a run that does produce a rendered flamegraph, when I try flipping back to the profile that was blank, the previous flamegraph that did render persists.

---

<div class="post-metadata">

**Author:** ![kapple](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kapple/32/218915_2.png) [@kapple](https://discourse.julialang.org/u/kapple)\
**Post date:** [September 21, 2024, 12:00am UTC](https://discourse.julialang.org/t/profview-blank-in-vscode-when-profiling-flux/119602/2 "2024-09-21T00:00:22Z")

</div>

I have experienced an empty `@profview` as well in some different contexts. I’ve never figure out the cause because I go back some days later or have changed my code then it works. I’d like to know what’s going on as well.

What happens for you when you profile from a standalone REPL instead?

---

<div class="post-metadata">

**Author:** ![BioTurboNick](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bioturbonick/32/6380_2.png) [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Post date:** [September 21, 2024, 1:27am UTC](https://discourse.julialang.org/t/profview-blank-in-vscode-when-profiling-flux/119602/3 "2024-09-21T01:27:13Z")

</div>

Regular `Profile.@profile` works just fine for me in these cases. I presume it’s something in the rendering path?

---

<div class="post-metadata">

**Author:** ![nsajko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsajko/32/221187_2.png) [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Post date:** [September 21, 2024, 2:02am UTC](https://discourse.julialang.org/t/profview-blank-in-vscode-when-profiling-flux/119602/4 "2024-09-21T02:02:12Z")

</div>

Maybe try using ProfileCanvas.jl from the REPL and see if the issue persists.

---

<div class="post-metadata">

**Author:** ![BioTurboNick](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bioturbonick/32/6380_2.png) [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Post date:** [September 21, 2024, 6:51am UTC](https://discourse.julialang.org/t/profview-blank-in-vscode-when-profiling-flux/119602/6 "2024-09-21T06:51:30Z")

</div>

Okay after making sure the buffer doesn’t fill up, it does work from ProfileCanvas in the terminal. That never worked in VSCode.
