Add environment variables to control memory tracing overhead.
When the memory overhead for memory usage tracing is bigger than the threshold value, a warning message is generated to indicate the amount of the memory used in the tracing. Environment variables to control the threshold value were added. See #2068. Signed-off-by: Pavan Balaji <firstname.lastname@example.org>