Convert "Chrome Performance Profile" to "Chrome JavaScript Profiler .cpuprofile" - performance

Is there a way to convert Chrome Performance Profile json to .cpuprofile format ?

Related

alternate option for window object in jmeter

When we try to encrypt and decrypt the application for front end request and response data,
Window object is not getting support in Jmeter.
As it generate 2 session id .
Kindly let us know any method in Groovy to support .
Window object is specific to the browser
As per JMeter project main page:
JMeter is not a browser, it works at protocol level. As far as web-services and remote services are concerned, JMeter looks like a browser (or rather, multiple browsers); however JMeter does not perform all the actions supported by browsers. In particular, JMeter does not execute the Javascript found in HTML pages. Nor does it render the HTML pages as a browser does (it's possible to view the response as HTML etc., but the timings are not included in any samples, and only one sample in one thread is ever displayed at a time).
So there is no equivalent in any language supported by JMeter's JSR223 Test Elements
The options are in:
Use WebDriver Sampler for getting the session IDs you're looking for, they can be passed later on to "normal" HTTP Request samplers (but this way each JMeter virtual user will kick off a real browser instance)
Extract the code responsible for request encryption and session ID generation using browser developer tools and convert it to something JMeter could execute (remove the browser context), preferably in Groovy as it's the most performing scripting option

OpenbravoErp performance testing

I only want to record and playback login page of openbravo,
problem is i don't know it is successfully playing back or not using VU(Jmeter).
How to know Virtual User(VU) is performing same like a real user ?
After #Dmitri T help i got following things
Why HTML is not parsed/how can parse it ?
I want Jmeter to mimic like real application ?
This might help you
You're half-way from your goal, all you need to do is:
Switch to "Response Data" tab
Select "HTML" or "HTML (download resources)" from the drop-down in order to see the rendered response
In order to make your test even more realistic:
Make sure that all your HTTP Requests have "Retrieve All Embedded Resources" box checked and you're using "concurrent pool" with the size of 3-5 threads as this is how real browsers act. The best way to configure it for all the samplers without having to change each request is using HTTP Request Defaults
Real browsers download embedded resources, like scripts, styles and images, but they do it only once. On subsequent requests these resources are being returned from the browser cache. In order to simulate this behavior you need to add HTTP Cache Manager.

training file language_id.txt for Google Prediction API unusable

I'm following the Hello Prediction example of the Google Prediction API.
Unfortunately the training file language_id.txt seems to be corrupted somehow? I tested downloading it using Google Chrome and Firefox, same result, see screenshot:
I think, therefore my tests do not work and I always get back English 1.0 as score for the Muy Bueno example string.
...
{
"label": "English",
"score": "1.000000"
},
...
Where do I get a usable language_id.txt test file from or is there anything else I can do?
EDIT: My guess is, the file has not been stored in UTF-8 format on the Google server?
The file is in UTF-8, but it doesn't declare an encoding, so viewing it in a browser assumes the default HTTP charset, ISO-8859-1.
I'm not sure why you're actually getting a corrupted copy (if I view it in Chrome, it appears corrupt, but saving it results in a correct UTF-8-encoded file), but perhaps you could try another mechanism to download it?

Is there support for Word and Excel ouput formats in the BIRT API?

I am generating ad-hoc reports on the fly in a servlet. I see how to send a report back as HTML or PDF. Does the BIRT API support other formats? The BIRT runtime app performs these exports, but I don't see anything in the API.
Yes, Word and Excel are both supported(either 2003 and 2007) by birt engine.
You can set it into Report engine options :
HTMLRenderOption options = new HTMLRenderOption();
options.setOutputFormat("xls");
task.setRenderOption(options);
From tomcat, you can render it in these outputs by setting the url format parameter:
html:
http://server:8080/birt/output?__report=myReport.rptdesign&__format=html
pdf:
http://server:8080/birt/output?__report=myReport.rptdesign&__format=pdf
word doc:
http://server:8080/birt/output?__report=myReport.rptdesign&__format=doc
excel:
http://server:8080/birt/output?__report=myReport.rptdesign&__format=xls
The last two (doc and xls) don't render in-line on the page, it downloads the word .doc or .xls to the client computer.

How to view the raw XML or Json response using LinqToTwitter?

How can I view the raw XML or Json response when doing a search for users using the LinqToTwitter library? I'm using the SingleUserAuthorizer for oAuth.
If you have any ideas using other libraries or even a simple oAuth framework, I'm open to suggestions.
Thanks.
TwitterContext has a RawResults property you can use.
If this is just for debugging purposes, I'd use Wireshark or Fiddler - that way you get to see the complete HTTP requests/responses.

Resources