Merge "Add trimMemory level to traces"