public static ProfilingService getInstance(Configuration configs) {
        if (instance == null) {
            synchronized (ProfilingService.class) {
                if (instance == null) {
                    instance = new ProfilingService(configs);
                }
            }
        }
        return instance;
    }
@Test
    public void testSingleton() throws IOException {
        try (ProfilingService testService = ProfilingService.getInstance(configs)) {
            Assertions.assertEquals(profilingService, testService);
        }
    }