updating log api to include log context
fixing profilig system to handle running out of assigned memory