TIBCOSoftware / flogo-cli

Project Flogo Command Line Interface
http://flogo.io
BSD 3-Clause "New" or "Revised" License
57 stars 28 forks source link

Added profiling support in main.go template #105

Closed vijaynalawade closed 6 years ago

vijaynalawade commented 6 years ago

What kind of change does this PR introduce? (check one with "x")

[] Bugfix
[x] Feature
[] Code style update (formatting, local variables)
[] Refactoring (no functional changes, no api changes)
[] Other... Please describe:

Fixes: # https://github.com/TIBCOSoftware/flogo/issues/243 What is the current behavior? No way to enable profiling What is the new behavior? With this change, developers can enable CPU and Memory profiling by setting -cpuprofile and -memprofile flags. e.g. ./MyApp -cpuprofile cpu_profile.prof -memprofile mem_profile.prof

vijaynalawade commented 6 years ago

@mellistibco : Please review updated PR