Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
milvus
提交
905191b2
milvus
项目概览
BaiXuePrincess
/
milvus
与 Fork 源项目一致
从无法访问的项目Fork
通知
7
Star
4
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
905191b2
编写于
9月 07, 2019
作者:
Y
Yu Kun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add profiling
Former-commit-id: d2f8ccb60753cde4c8c51616757193bb724b2b9e
上级
bb572e11
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
11 addition
and
8 deletion
+11
-8
cpp/cmake/DefineOptions.cmake
cpp/cmake/DefineOptions.cmake
+1
-1
cpp/src/sdk/examples/grpcsimple/src/ClientTest.cpp
cpp/src/sdk/examples/grpcsimple/src/ClientTest.cpp
+6
-5
cpp/src/sdk/grpc/ClientProxy.cpp
cpp/src/sdk/grpc/ClientProxy.cpp
+2
-0
cpp/src/server/grpc_impl/GrpcRequestTask.cpp
cpp/src/server/grpc_impl/GrpcRequestTask.cpp
+1
-1
cpp/unittest/db/scheduler_test.cpp
cpp/unittest/db/scheduler_test.cpp
+1
-1
未找到文件。
cpp/cmake/DefineOptions.cmake
浏览文件 @
905191b2
...
...
@@ -96,7 +96,7 @@ define_option(MILVUS_WITH_ZLIB "Build with zlib compression" ON)
define_option
(
MILVUS_WITH_KNOWHERE
"Build with Knowhere"
OFF
)
define_option
(
MILVUS_ENABLE_PROFILING
"Build with profiling"
ON
)
#
define_option(MILVUS_ENABLE_PROFILING "Build with profiling" ON)
if
(
CMAKE_VERSION VERSION_LESS 3.7
)
set
(
MILVUS_WITH_ZSTD_DEFAULT OFF
)
...
...
cpp/src/sdk/examples/grpcsimple/src/ClientTest.cpp
浏览文件 @
905191b2
...
...
@@ -22,9 +22,9 @@ std::string GetTableName();
const
std
::
string
TABLE_NAME
=
GetTableName
();
constexpr
int64_t
TABLE_DIMENSION
=
512
;
constexpr
int64_t
TABLE_INDEX_FILE_SIZE
=
768
;
constexpr
int64_t
BATCH_ROW_COUNT
=
100000
;
constexpr
int64_t
NQ
=
100
;
constexpr
int64_t
TABLE_INDEX_FILE_SIZE
=
1024
;
constexpr
int64_t
BATCH_ROW_COUNT
=
100000
0
;
constexpr
int64_t
NQ
=
100
00
;
constexpr
int64_t
TOP_K
=
10
;
constexpr
int64_t
SEARCH_TARGET
=
5000
;
//change this value, result is different
constexpr
int64_t
ADD_VECTOR_LOOP
=
1
;
...
...
@@ -306,7 +306,9 @@ ClientTest::Test(const std::string& address, const std::string& port) {
}
{
//search vectors after build index finish
DoSearch
(
conn
,
search_record_array
,
"Search after build index finish"
);
for
(
uint64_t
i
=
0
;
i
<
5
;
++
i
)
{
DoSearch
(
conn
,
search_record_array
,
"Search after build index finish"
);
}
// std::cout << conn->DumpTaskTables() << std::endl;
}
...
...
@@ -338,7 +340,6 @@ ClientTest::Test(const std::string& address, const std::string& port) {
std
::
cout
<<
"Server status before disconnect: "
<<
status
<<
std
::
endl
;
}
Connection
::
Destroy
(
conn
);
// conn->Disconnect();
{
//server status
std
::
string
status
=
conn
->
ServerStatus
();
std
::
cout
<<
"Server status after disconnect: "
<<
status
<<
std
::
endl
;
...
...
cpp/src/sdk/grpc/ClientProxy.cpp
浏览文件 @
905191b2
...
...
@@ -240,6 +240,7 @@ ClientProxy::Search(const std::string &table_name,
//step 3: search vectors
::
milvus
::
grpc
::
TopKQueryResultList
topk_query_result_list
;
Status
status
=
client_ptr_
->
Search
(
topk_query_result_list
,
search_param
);
//step 4: convert result array
...
...
@@ -254,6 +255,7 @@ ClientProxy::Search(const std::string &table_name,
topk_query_result_array
.
emplace_back
(
result
);
}
return
status
;
}
catch
(
std
::
exception
&
ex
)
{
...
...
cpp/src/server/grpc_impl/GrpcRequestTask.cpp
浏览文件 @
905191b2
...
...
@@ -14,7 +14,7 @@
#include "GrpcMilvusServer.h"
#include "db/Utils.h"
#include "scheduler/SchedInst.h"
#include <gperftools/profiler.h>
//
#include <gperftools/profiler.h>
#include "src/server/Server.h"
...
...
cpp/unittest/db/scheduler_test.cpp
浏览文件 @
905191b2
...
...
@@ -56,7 +56,7 @@ TEST(DBSchedulerTest, TASK_QUEUE_TEST) {
ptr
=
queue
.
Back
();
ASSERT_EQ
(
ptr
->
type
(),
engine
::
ScheduleTaskType
::
kIndexLoad
);
load_task
->
Execute
();
//
load_task->Execute();
}
TEST
(
DBSchedulerTest
,
SEARCH_SCHEDULER_TEST
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录