Comments (7)
Based on our documentation, we should be using "%USERPROFILE%/pprof" on windows when no value is set for PPROF_TMPDIR.
Just to double check, do you know if there was a value for %USERPROFILE% when you had this error?
from pprof.
Yes, I have %USERPROFILE% set. It's easily reproducible by running go tool pprof blah
- it doesn't seem to matter whether the file "blah" exists or not.
from pprof.
I've tried running the latest version of pprof, with go version 1.8.3, on a Windows machine when %PPROF_TEMPDIR% is not set. However, I wasn't able to replicate this error.
Do you how recent your version of pprof is, or if this problem persists for you with the latest version? Could it be related to your version of windows (I ran this on a computer with Windows 10 Home)?
from pprof.
Note that the user runs go tool pprof myfile.prof
here, which uses pprof that is part of Go distribution.
from pprof.
Maybe this is golang/go#18864 which was fixed in #95?
from pprof.
Yes, it looks like the same issue to me. I would still suggest checking that whatever environment variable you picked is not empty before appending a sub-path to it. Doing that would have given a clearer error here. Also, in one case filepath.Join(os.Getenv(homeEnv()), ...
is used and in another case os.Getenv(homeEnv()) + "/pprof"
- not sure if that's safe on Windows.
from pprof.
Using filepath.Join() consistently and not using empty string as an absolute path prefix are all reasonable things, yes.
from pprof.
Related Issues (20)
- Hash-pin workflow Actions
- Module did not self-register: Worker Threads HOT 1
- disasm: no matches found for regexp HOT 2
- Add tests for javascript code HOT 3
- Error & Troubleshooting HOT 1
- Support code coverage in javascript test HOT 1
- Add elf type and load segment information to mapping HOT 1
- pprof on MacOS can't find dot? HOT 3
- UI Support for tag commands: tagfocus, tagignore, tagshow, tagroot, etc HOT 1
- -tagroot and -tagleaf in UI aren't including the tag name? HOT 4
- New flame graph appears to reset the profile state in an unexpected way HOT 1
- If the file under the current path contains a colon, go tool pprof will parse it into a url and will not work properly.
- Compatibility guarantees for Profile-Guided Optimization (PGO) purposes with Go HOT 2
- Set Function.start_line when symbolizing HOT 3
- Patch CVE for d3-color HOT 1
- make sources/sinks a different color HOT 2
- Canvas size related to initial size of a graph, should use the full space
- New flamegraph: 'hover shows details on the top' from old flame-graph missing
- Nice to have: 'grab' cursor when dragging the graph HOT 2
- How to load debug symbols from separately installed `-dbgsym` packages? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pprof.