Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable profiling of Vitess on demand #610

Merged
merged 12 commits into from
Oct 29, 2024
Prev Previous commit
tweak ui
Signed-off-by: Florent Poinsard <[email protected]>
  • Loading branch information
frouioui committed Oct 29, 2024
commit 724acdb0cf737ec3975ae213ab8b38b6fbfeeaae
27 changes: 19 additions & 8 deletions go/admin/templates/add_new_executions.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,21 +131,32 @@

<div id="profilingFields" class="flex items-center space-x-4 mt-4 hidden">
<label class="label">Binary to profile</label>
<input
<select
class="shadow appearance-none border rounded w-40 py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
type="text"
name="binaryToProfile"
/>
>
<option value="" disabled selected>Select a binary</option>
<option value="binary1">vtgate</option>
<option value="binary2">vttablet</option>
</select>

<label class="label">Profile Mode</label>
<input
class="shadow appearance-none border rounded w-20 py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
type="text"
<select
class="shadow appearance-none border rounded w-40 py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
name="profileMode"
/>
>
<option value="" disabled selected>Select mode</option>
<option value="cpu">cpu</option>
<option value="mem_heap">mem_heap</option>
<option value="mem_allocs">mem_allocs</option>
<option value="mutex">mutex</option>
<option value="block">block</option>
<option value="trace">trace</option>
<option value="threads">threads</option>
<option value="goroutine">goroutine</option>
</select>
</div>


<br>
<button
hx-post="/admin/executions/add"
Expand Down
Loading