* ctrace.h: make 4.9 working
Merge branch 'master' into 4_9-plugin
Fix the syscall include file.
Merge branch 'master' into 4_9-plugin
* ctrace.h: Support cross platform 64bit print.
* runtime_android.cpp: New File. Runtime implement for android.
* ctrace.h: Use 0.001ms instead of ns. Revert 7c19538aaa12815432664251efd3ed4678671992.
* runtime_android.cpp: Update to 0.001ms.
* ctrace.h: Make de-thread version 64bit cross platform
Merge branch 'master' into 4_9-plugin
* ctrace.h:Make flush file every 5 seconds.
Conflicts:
	ctrace.h
* runtime_sigprof.cpp: A new runtime using sigprof to gather intervals.
* runtime_sigprof.cpp: Make freq as contant.
* runtime_sigprof.cpp(__end_ctrace): Correct plus 1 to plus frequency.
* runtime_sigprof.cpp: Block the SIGPROF if the thread does not belongs to the profiling threads.
* runtime_sigprof.cpp (freqency): Change to 100.
(max_idle_times): Max idle times that can be endured.
(pipes): New global. Use to store pipes generated by pipe api.
These pipes are to pass the pointer of a record.
(struct ThreadInfo): New field idle_times_, used to record how many times
we have met idle.
(ThreadInfo::Clear): Clear the thread info in the current thread.
(delete_thread_info): Use ThreadInfo::Clear.
(myhandler): Clear the thread info after max_idle_times.
(Initializer::Initializer): New the pipes. New the writer thread.
(Initializer::~Initializer): Close the pipes.
(struct Record): New struct. To record the fields thread info and
trace struct.
(record_this): Pass pointer to struct Record instead of block writing.
(writer_thread): Read the pointer and write.
* runtime_sigprof.cpp: Make times correct.
Retry syscall if interrupted by signals.
* runtime_sigprof.cpp (myhandler): old_time should add tick.
* runtime_sigprof.cpp (myhandler): Fix the bug that make the child even bigger than parent.
* runtime_sigprof: Correct the graph.
Add stat. But not enable it by default.
* runtime_sigprof.cpp: Correct idel to idle. Make it fast to reject SIGPROF.
fix a crash. Cause by stack_end_ is -1.
* runtime_sigprof.cpp (get_thread_info): Rename to GetThreadInfo.
(ThreadInfo::SetBlocked): Set current thread info blocked. Reset update count.
(GetTimeFromClock): New function.
(myhandler): Block the thread now. Try update clock.
* runtime_sigprof.cpp: Fix idle_times not reset.