Update binary file information
This commit is contained in:
Родитель
708c507e06
Коммит
9ac1333bcb
|
@ -10,8 +10,8 @@ set(TARGET_GIT_BRANCH "master" CACHE STRING "Branch of the SDK repo to target`")
|
|||
|
||||
set(no_logging ON)
|
||||
set(use_mqtt ON)
|
||||
set(use_amqp OFF)
|
||||
set(use_http OFF)
|
||||
set(use_amqp ON)
|
||||
set(use_http ON)
|
||||
set(use_prov_client OFF)
|
||||
set(dont_use_uploadtoblob ON)
|
||||
set(sdk_branch "master" CACHE STRING "The branch of the sdk")
|
||||
|
@ -30,18 +30,6 @@ include(ExternalProject)
|
|||
|
||||
message("Generated with config types: ${CMAKE_CONFIGURATION_TYPES}")
|
||||
|
||||
if(${no_logging})
|
||||
add_definitions(-DNO_LOGGING)
|
||||
endif()
|
||||
if (${dont_use_uploadtoblob})
|
||||
add_definitions(-DDONT_USE_UPLOADTOBLOB)
|
||||
endif()
|
||||
|
||||
# load the c-sdk
|
||||
#SET(CMAKE_BUILD_TYPE Release)
|
||||
#set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Wall")
|
||||
#set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall")
|
||||
|
||||
# Check out Git submodules.
|
||||
if (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/deps/c-sdk/.gitmodules")
|
||||
message("running git clone of the c-sdk into ${CMAKE_CURRENT_SOURCE_DIR}/deps/c-sdk")
|
||||
|
@ -54,6 +42,18 @@ else()
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if(${no_logging})
|
||||
add_definitions(-DNO_LOGGING)
|
||||
endif()
|
||||
if (${dont_use_uploadtoblob})
|
||||
add_definitions(-DDONT_USE_UPLOADTOBLOB)
|
||||
endif()
|
||||
|
||||
# load the c-sdk
|
||||
#SET(CMAKE_BUILD_TYPE Release)
|
||||
#set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Wall")
|
||||
#set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall")
|
||||
|
||||
set(memory_trace ON)
|
||||
set(skip_samples ON)
|
||||
|
||||
|
|
|
@ -68,18 +68,18 @@ int main(void)
|
|||
const char* telemetry_msg = "test_message";
|
||||
|
||||
// Select the Protocol to use with the connection
|
||||
#ifdef USE_AMQP
|
||||
#ifdef USE_WEB_SOCKETS
|
||||
protocol = AMQP_Protocol_over_WebSocketsTls;
|
||||
#else
|
||||
protocol = AMQP_Protocol;
|
||||
#endif
|
||||
#elif USE_MQTT
|
||||
#ifdef USE_MQTT
|
||||
#ifdef USE_WEB_SOCKETS
|
||||
protocol = MQTT_WebSocket_Protocol;
|
||||
#else
|
||||
protocol = MQTT_Protocol;
|
||||
#endif
|
||||
#elif USE_AMQP
|
||||
#ifdef USE_WEB_SOCKETS
|
||||
protocol = AMQP_Protocol_over_WebSocketsTls;
|
||||
#else
|
||||
protocol = AMQP_Protocol;
|
||||
#endif
|
||||
#else
|
||||
// USE_HTTP
|
||||
protocol = HTTP_Protocol;
|
||||
|
|
|
@ -67,18 +67,18 @@ int main(void)
|
|||
const char* telemetry_msg = "test_message";
|
||||
|
||||
// Select the Protocol to use with the connection
|
||||
#ifdef USE_AMQP
|
||||
#ifdef USE_WEB_SOCKETS
|
||||
protocol = AMQP_Protocol_over_WebSocketsTls;
|
||||
#else
|
||||
protocol = AMQP_Protocol;
|
||||
#endif
|
||||
#elif USE_MQTT
|
||||
#ifdef USE_MQTT
|
||||
#ifdef USE_WEB_SOCKETS
|
||||
protocol = MQTT_WebSocket_Protocol;
|
||||
#else
|
||||
protocol = MQTT_Protocol;
|
||||
#endif
|
||||
#elif USE_AMQP
|
||||
#ifdef USE_WEB_SOCKETS
|
||||
protocol = AMQP_Protocol_over_WebSocketsTls;
|
||||
#else
|
||||
protocol = AMQP_Protocol;
|
||||
#endif
|
||||
#else
|
||||
// USE_HTTP
|
||||
protocol = HTTP_Protocol;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
SDK Without Diagnostic
|
||||
{ "sdkAnalysis": { "dateTime": "8-30-2018", "opType": "binSize", "feature": "d2c", "layer": "lower layer", "OS": "Linux", "version": "1.2.8", "transport" : "MQTT PROTOCOL", "binarySize" : "387776"} }
|
||||
{ "sdkAnalysis": { "dateTime": "8-30-2018", "opType": "binSize", "feature": "d2c", "layer": "lower layer", "OS": "Linux", "version": "1.2.8", "transport" : "MQTT WS PROTOCOL", "binarySize" : "439008"} }
|
||||
{ "sdkAnalysis": { "dateTime": "8-30-2018", "opType": "binSize", "feature": "d2c", "layer": "upper layer", "OS": "Linux", "version": "1.2.8", "transport" : "MQTT PROTOCOL", "binarySize" : "420384"} }
|
||||
{ "sdkAnalysis": { "dateTime": "8-30-2018", "opType": "binSize", "feature": "d2c", "layer": "upper layer", "OS": "Linux", "version": "1.2.8", "transport" : "MQTT WS PROTOCOL", "binarySize" : "475704"} }
|
||||
Full_SDK
|
||||
{ "sdkAnalysis": { "dateTime": "8-30-2018", "opType": "binSize", "feature": "d2c", "layer": "lower layer", "OS": "Linux", "version": "1.2.8", "transport" : "MQTT PROTOCOL", "binarySize" : "502208"} }
|
||||
{ "sdkAnalysis": { "dateTime": "8-30-2018", "opType": "binSize", "feature": "d2c", "layer": "lower layer", "OS": "Linux", "version": "1.2.8", "transport" : "MQTT WS PROTOCOL", "binarySize" : "557504"} }
|
||||
|
||||
SDK without Diagnostic
|
||||
{ "sdkAnalysis": { "dateTime": "8-30-2018", "opType": "binSize", "feature": "d2c", "layer": "lower layer", "OS": "Linux", "version": "1.2.8", "transport" : "MQTT PROTOCOL", "binarySize" : "392352"} }
|
||||
{ "sdkAnalysis": { "dateTime": "8-30-2018", "opType": "binSize", "feature": "d2c", "layer": "lower layer", "OS": "Linux", "version": "1.2.8", "transport" : "MQTT WS PROTOCOL", "binarySize" : "443584"} }
|
||||
|
|
|
@ -6,10 +6,13 @@ function(add_memory_directory whatIsBuilding)
|
|||
#add_subdirectory(${whatIsBuilding})
|
||||
endfunction()
|
||||
|
||||
#add_memory_directory(device_method_mem)
|
||||
#add_analytic_directory(c2d_memory "heap_analysis")
|
||||
add_analytic_directory(telemetry_memory "heap_analysis")
|
||||
#add_analytic_directory(telemetry_net_info "network_info")
|
||||
if (${use_http})
|
||||
#add_memory_directory(device_method_mem)
|
||||
#add_analytic_directory(c2d_memory "heap_analysis")
|
||||
add_analytic_directory(telemetry_memory "heap_analysis")
|
||||
#add_analytic_directory(telemetry_net_info "network_info")
|
||||
endif()
|
||||
|
||||
if (${use_prov_client})
|
||||
#add_analytic_directory(prov_net_info "network_info")
|
||||
#add_analytic_directory(provisioning_mem "prov_mem")
|
||||
|
|
Загрузка…
Ссылка в новой задаче