<commit_before># goprof

This library provides single entry point to all profiling functionality available in golang 1.5. `StartProfiling` starts writing [trace](https://golang.org/cmd/trace/) and [cpu profile](https://golang.org/pkg/runtime/pprof/#StartCPUProfile) to some random directory it creates before running.
When you call `StopProfiling` it writes [heap profile](https://golang.org/pkg/runtime/pprof/#WriteHeapProfile) to the same directory as well as stopping current profiling.

## License

MIT<commit_msg>A bit readme about logger<commit_after># goprof

This library provides single entry point to all profiling functionality available in golang 1.5. `StartProfiling` starts writing [trace](https://golang.org/cmd/trace/) and [cpu profile](https://golang.org/pkg/runtime/pprof/#StartCPUProfile) to some random directory it creates before running.
When you call `StopProfiling` it writes [heap profile](https://golang.org/pkg/runtime/pprof/#WriteHeapProfile) to the same directory as well as stopping current profiling.

## Logging

By default, the library writes logs about start/stop profiling and errors using standard go logger. You can provide
your own log function in order to make it fit your logging or shut up the logging at all.

We don't use much log levels since all the messages have quite the same level.

## License

MIT
{'fraction_non_alphanumeric': 0.08166295471417966, 'fraction_numerical': 0.002969561989606533, 'mean_word_length': 5.072072072072072, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4567148', 'n_tokens_mistral': 371, 'n_tokens_neox': 346, 'n_words': 158}