Fix links/text

This commit is contained in:
Evan Jones 2020-01-26 18:05:35 -05:00
parent e29f0a2d66
commit 324a6168da
2 changed files with 3 additions and 5 deletions

View File

@ -1,8 +1,8 @@
# PProf Web UI # PProf Web UI
This is a total hack to upload pprof files and serve the UI. This avoids needing to install any tools. This is a hacky experiment that serves the [Go pprof profiler web UI](https://github.com/google/pprof). You can upload pprof files then view them without installing anything. See [my blog post for some additional details](https://www.evanjones.ca/pprofweb.html).
Try it: https://pprofweb-kgdmaenclq-uc.a.run.app/ Try it: https://pprofweb.evanjones.ca/
## Run Locally ## Run Locally

View File

@ -154,10 +154,8 @@ const rootTemplate = `<!doctype html>
<head><title>PProf Web Interface</title></head> <head><title>PProf Web Interface</title></head>
<body> <body>
<h1>PProf Web Interface</h1> <h1>PProf Web Interface</h1>
<p>Upload a file to explore it using the Pprof web interface.</p> <p>Upload a file to explore it using the <a href="https://github.com/google/pprof">Pprof</a> web interface. See the <a href="https://github.com/evanj/pprofweb">documentation/source code</a>.</p>
<h2>NOTE: Will not work with multiple users</h2>
<p>This is currently a hack: it runs in Google Cloud Run, which will restart instances whenever it wants. This means your state may get lost at any time, and it won't work if there are multiple people using it at the same time.</p> <p>This is currently a hack: it runs in Google Cloud Run, which will restart instances whenever it wants. This means your state may get lost at any time, and it won't work if there are multiple people using it at the same time.</p>
<p>TODO: Write all the output from pprof out to static files in Google Cloud Storage and serve them from there.</p>
<form method="post" action="` + uploadPath + `" enctype="multipart/form-data"> <form method="post" action="` + uploadPath + `" enctype="multipart/form-data">
<p>Upload file: <input type="file" name="` + fileFormID + `"> <input type="submit" value="Upload"></p> <p>Upload file: <input type="file" name="` + fileFormID + `"> <input type="submit" value="Upload"></p>