pprof how to get profile.pb.gz without using pprof -http - profile

I ues pprof -http to generate profiling result all the time, but every time i need profile.pb.gz i need go to the http web to download it.
what i did
Is that anyway to generate profile.pb.gz with local binary,but no need to using pprof -http.

Just use the following command to download a file directly
go tool pprof -proto source
You can also refer this documentation on how to use pprof tool differently according to your use case.

Related

REG: Jmeter Test reporting framework

I am trying build a report that gives comparison of response time between selected test runs. do we have any such extension or reporting framework which will take Test Run JtL files as input and generate comparison report of different response time ?
Suggestion-
If you have a an output csv then create a dashboard report and jmeter response graph will give you comparison results
Use this command in cmd- i think you can also use jtl in this
jmeter -g C:\Users\output.csv -o C:\Users\Report
open an html file and check Response time graph.
and if don't have consolidated csv try consolidating manually and check graph of response time.
The ready solution is BM.Sense results analysis platform
If you're trying to build your own "framework" and would like to copy paste the main logic from somewhere you can take a look at Merge Results plugin
You can put your test under Jenkins orchestration and use Performance Plugin for building performance trends charts, the comparison logic is also there and the plugin is open source
You can use Backend Listener and store the execution results to an external source like InfluxDB and then visualize/compare them using Grafana

How to add kube-config and use go-client in our go program

What the role of kube-Config and how to use this in our go program for simple operations?
There is an example in client-go library you can use for learning. You can check the source, i am not including it here, as it a bit heavy.
But in general:
You read config from kubeconfig using kubernetes.NewForConfig
And using clientset returned by the previous command your app performing API requests.

Graph Results via Non GUI mode in JMeter

Is there any possibilities to get my below mentioned Graph Results in JMeter test, which is executed in non GUI mode. I can extract its values using csv, but we need to run the test in non GUI mode to get dashboard results also. Any possibilities for this ?
Given you run your JMeter test in command-line non-GUI mode like:
jmeter -n -t test.jmx -l results.jtl
Once test is finished you should be able to open JMeter GUI, add Graph Results listener, locate results.jtl file using "Browse" button and you will see the chart.
Also there is an option to generate some charts in unattended manner using Command-Line Graph Plotting Tool available via JMeter Plugins project, see Automatically generating nice graphs at end of your Load Test with Apache JMeter and JMeter-Plugins guide for details.
I am trying to write web app based on Django to work with test results, do an online monitoring, etc. (kinda dashboard) for load tests which runned in Jmeter console mode (incl. distributive testing).
Maybe you will want to participate in development or so :):
https://github.com/v0devil/JMeter-Control-Center

Fetch response times in JMeter running remotely

Ok so I set up my JMeter to run remotely using one slave computer (possibly more to come), and it's working out for the most part EXCEPT that I can't fetch the response time over time-graphs function using the JMeter plugin. I'm still able to use the "PerfMon Metrics" tool to get the CPU/Memory values from the slave computer, so I don't understand how I'm not able to get the response time results.
Does anyone have any experience using that function?
I would check the master- slave configuration: be sure that
the same Jmeter release is used
same directory tree structure is used
Jmeter-plugins are installed on both systems
...
If you use a standard "Summary report" listener, and save data to a file in the master, then you can reload and analyse the data off line with any listener.
HTH

Restart Go's net/http server on file-change like Django

I'm trying out Martini, which adds some nice functionality upon Go's basic net/http package.
I was wondering tho. How can I, like Django does too, let the server restart itself on source-file changes? I know how to monitor a file, but I'm not sure how to retrigger the Server within the same process.
I'm guessing to trigger http.ListenAndServe again, but I have a feeling it doesn't go well with instance already running.
Do I need to spawn a subprocess/daemon to get this working?
Maybe you need gin ?
Made by the creator of Martini.
You may give it a try
Fresh is a command line tool that builds and (re)starts your web application everytime you save a Go or template file.
You'll need to use an external tool that can watch a directory/files and run a command. I'd recommend reflex which is written in Go itself:
(modifying the example in the README):
# Rerun make whenever a .go file changes
reflex -r '\.go$' ./mymartiniapp

Resources