-XX:NativeMemoryTracking=detail
jps
ps -p <PID> -o pcpu,rss,size,vsize
| import requests | |
| import base64 | |
| from tqdm import tqdm | |
| master_json_url = 'https://178skyfiregce-a.akamaihd.net/exp=1474107106~acl=%2F142089577%2F%2A~hmac=0d9becc441fc5385462d53bf59cf019c0184690862f49b414e9a2f1c5bafbe0d/142089577/video/426274424,426274425,426274423,426274422/master.json?base64_init=1' | |
| base_url = master_json_url[:master_json_url.rfind('/', 0, -26) + 1] | |
| resp = requests.get(master_json_url) | |
| content = resp.json() |
| public class MysteryBox { | |
| private long x0, x1; | |
| private boolean y0, y1, y2, y3; | |
| private int z0; | |
| private double[] a = new double[8]; | |
| } |
| curl \ | |
| --verbose \ | |
| --request OPTIONS \ | |
| http://localhost:3001/api/configuration/visitor \ | |
| --header 'Origin: http://localhost:9292' \ | |
| --header 'Access-Control-Request-Headers: Origin, Accept, Content-Type' \ | |
| --header 'Access-Control-Request-Method: GET' | |
| # http://nils-blum-oeste.net/cors-api-with-oauth2-authentication-using-rails-and-angularjs/#.UQJeLkp4ZyE |
This note tries to document the output of PrintCompilation flag in HotSpot VM. It was originally intended to be a reply to a blog post on PrintCompilation from Stephen Colebourne. It's kind of grown too big to fit as a reply, so I'm putting it here.
Written by: Kris Mok rednaxelafx@gmail.com
Most of the contents in this note are based on my reading of HotSpot source code from OpenJDK and experimenting with the VM flags; otheres come from HotSpot mailing lists and other reading materials listed in the "References" section.
This
| 1 b java.lang.String::charAt (33 bytes) | |
| 2 b java.lang.Math::max (11 bytes) | |
| 3 b java.util.jar.Manifest$FastInputStream::readLine (167 bytes) | |
| 4 b sun.nio.cs.UTF_8$Decoder::decodeArrayLoop (553 bytes) | |
| 5 b java.util.Properties$LineReader::readLine (383 bytes) | |
| 6 b java.lang.String::hashCode (60 bytes) | |
| 7 b java.lang.String::indexOf (151 bytes) | |
| 8 b sun.nio.cs.ext.DoubleByteDecoder::decodeSingle (10 bytes) | |
| 9 b java.lang.String::lastIndexOf (156 bytes) | |
| 10 b java.lang.String::replace (142 bytes) |