Add analysis of profiling data
Make error messages consistent between languages
Don't throw error given zero input

It's better to simply do nothing in such cases, which is more
consistent with Unix sort behavior and the Unix philosophy overall